HTML


Solved Question – 2 (SQ-Html-2)

Question –

Write the HTML tags to insert four horizontal lines with different colors


Solution Details:

Markup Language Use: HTML

Code in HTML

<!DOCTYPE html>
<html lang="en">
<head>
    <title>MMI - Solved Questions Html</title>
</head>
<body>

<div class="container" style="padding:10px;">

<hr style="height:10px; border:none; color:#000; background-color:#000;"> 
<br>
<hr style="height:10px; border:none; color:#000; background-color:#ff0;"> 
<br>
<hr style="height:5px; border:none; width:60%; color:#000; background-color:#0f0;"> 
<br>
<hr style="height:3px; border:none; color:#000; background-color:#0ff;"> 
<br>
<hr style="height:8px; border:none; width:60%; color:#000; background-color:Orange;"> 
<br>
<hr style="height:10px; border:1px solid #090909; color:#ff0; background-color:red;"> 
 

<p> Learn More About HTML in - <a href="https://mymixindia.com/education/tutorials/html/">HTML Tutorials</a> On <a href="https://mymixindia.com"> MyMixIndia.com</a></p>

</div>
</body>
</html>

 


OUTPUT

Output Image –

sq-html-2-que-2

 


There are more than 4 horizontal lines of different colors and styles.

 

Learn More About HTML Programming in – HTML Tutorials


 

Leave a Reply

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