https://www.rakeshmgs.in/search/label/Template
https://www.rakeshmgs.in
RakeshMgs

Create an html page with 7 separate lines in different colors. State color of each line in its text

Updated:

Question: Create an html page with 7 separate lines in different colors. State color of each line in its text.

<!DOCTYPE html>
<html>
<head>
<title>WD 9.2 (vi)</title>
</head>
<body>
<h2 align="center">RED</h2>
<hr style=" background: red; height: 20px; border: none;">
<h2 align="center">ORANGE</h2>
<hr style=" background: orange; height: 20px; border: none;">
<h2 align="center">YELLOW</h2>
<hr style=" background: yellow; height: 20px; border: none;">
<h2 align="center">GREEN</h2>
<hr style=" background: green; height: 20px; border: none;">
<h2 align="center">BLUE</h2>
<hr style=" background: blue; height: 20px; border: none;">
<h2 align="center">INDIGO</h2>
<hr style=" background: indigo; height: 20px; border: none;">
<h2 align="center">VIOLET</h2>
<hr style=" background: violet; height: 20px; border: none;">
</body>
</html>





Output


RED


ORANGE


YELLOW


GREEN


BLUE


INDIGO


VIOLET



आपको आर्टिकल कैसा लगा? अपनी राय अवश्य दें
Please don't Add spam links,
if you want backlinks from my blog contact me on rakeshmgs.in@gmail.com