Horje Website
Colors Colornames – Default – Colors Tutorial

Colors Colornames – Default

Colors Colornames - Default


 
  1. <!DOCTYPE html>
  2. <html>
  3. <style>
  4. div {padding:10px;}
  5. </style>
  6. <body>
  7. <h1>Colors can be set using color names</h1>
  8. <div style="background-color:red">
  9. <h1 style="color:white">Heading</h1>
  10. </div>
  11. <div style="background-color:yellow">
  12. <h1 style="color:blue">Heading</h1>
  13. </div>
  14. <div style="background-color:blue">
  15. <h1 style="color:yellow">Heading</h1>
  16. </div>
  17. </body>
  18. </html>



Try Your Self ->



Published:
October 8, 2020
Author:
admin
Category:
Colors Source Code, Colors Tutorial
Views:
14

This article was posted in Colors Source Code, Colors Tutorial and tagged , , . Bookmark the permalink. Follow comments with the RSS feed for this post.Post a Comment or leave a trackback: Trackback URL.

Leave a Reply

Your email address will not be published. Required fields are marked *

 

Horje © 2011 - 2023