css background


SUBMITTED BY: Guest

DATE: March 29, 2014, 4:53 p.m.

FORMAT: CSS

SIZE: 444 Bytes

HITS: 720

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <style>
  5. h1
  6. {
  7. background-color:#6495ed;
  8. }
  9. p
  10. {
  11. background-color:#e0ffff;
  12. }
  13. div
  14. {
  15. background-color:#b0c4de;
  16. }
  17. </style>
  18. </head>
  19. <body>
  20. <h1>CSS background-color example!</h1>
  21. <div>
  22. This is a text inside a div element.
  23. <p>This paragraph has its own background color.</p>
  24. We are still in the div element.
  25. </div>
  26. </body>
  27. </html>

comments powered by Disqus