Write a HTML program to print the numbers 1 - 10, each number being a different color

Write a HTML program to print the numbers 1 - 10, each number being a different color


Introduction

Write a HTML script to print the numbers 1 - 10, each number being a different color


techstudy.org

Kindle Paperwhite High Resolution Display Tablet | Rs. 9999

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>www.techstudy.org</title>
  6. </head>
  7. <body>
  8. <font color="green">1</font>
  9. <font color="blue">2</font>
  10. <font color="gray">3</font>
  11. <font color="#008080">4</font>
  12. <font color="#0008B">5</font>
  13. <font color="brown">6</font>
  14. <font color="#dcdcdc">7</font>
  15. <font color="#800000">8</font>
  16. <font color="purple">9</font>
  17. <font color="#688e23">10</font></body>
  18. </html>

Result

html excercise techstudy.org

     





Related Topics



Responses




Popular Posts

Facebook

Founded in 2016, Tech Study passionately delivers stylish and dynamic innovative information to programmer and technology lovers. http://www.techstudy.org/.