Create an html page with 7 separate lines in different colors. State color of each line in its text
Answers
HTML page with 7 separate lines in different colors
Program:
<html>
<head><title>Example</title></head>
<body align="center">
<h1>7 Statements in 7 Colors.</h1><hr width="60%">
<p style="color:blue">1. Blue</p>
<p style="color:green">2. Green</p>
<p style="color:red">3. Red</p>
<p style="color:teal">4. Teal</p>
<p style="color:darkorange">5. Dark Orange</p>
<p style="color:pink">6. Pink</p>
<p style="color:purple">7. Purple</p>
<hr width="60%">
</body>
</html>
Output:
In [ATTACHMENTS]
Download the file, and save it with .html extension, run, to get the output.
Learn more:
Write HTML co-de to generate the following table
https://brainly.in/question/14751808
Write the HTML co-de to generate the following output:Dubai Tourism
https://brainly.in/question/6713763