Advertisement
MrsMcLead

CSS Class

Feb 6th, 2014
339
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.60 KB | None | 0 0
  1. <html>
  2. <head>
  3. <title>
  4. CSS got class.... CSS got style!
  5. </title>
  6. <style type = "text/css">
  7. body
  8. {
  9.     background-color:#B90F15;
  10. }
  11. h1
  12. {
  13.     color:#C78745;
  14. }
  15. p
  16. {
  17.     color: purple;
  18.     font-family: Impact;
  19. }
  20. table, td
  21. {
  22.     border: 5px solid black;
  23. }
  24.  
  25. /*This is a comment to let you know that the below is a class!*/
  26. .green
  27. {
  28.     color:green;
  29.     font-family: Impact;
  30. }
  31. </style>
  32. </head>
  33.  
  34. <body>
  35. <h1> I don't know </h1>
  36. <p>I guess I don't know</p>
  37. <table class = "green">
  38. <tr>
  39.     <td>cell 1</td>
  40.     <td> cell 2 </td>
  41. </tr>
  42. <tr>
  43.     <td>cell 3</td>
  44.     <td> cell 4 </td>
  45. </tr>
  46. </table>
  47. </body>
  48. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement