Computer Science, asked by Ananyavishvakarma, 1 year ago

Write the html code to show the horizontal line of red color

Answers

Answered by 7905143717
51
<html>
<head>
<title>hr element example</title>
</head>
<body>
     <p>
      Hr tag is used to draw a horizontal line in your html page. Notice the line
       below.
     </p>
     <hr>
     <p>
       You can use the noshade attribute to define a line with no shade. Notice 
       the line below.
     </p>
     <hr  color="red">
      <p>
       You can use the color attribute to define the line color. Notice the line 
       below.
      </p>
      
     <hr noshade >
</body>
</html>
Answered by siddhartharao77
132
Following is the code to show the horizontal line red color : 

<html>
<head>
<title>My Basic Question</title>
</head>
<body>
</br>
<hr color="red"></hr>
</body>
</html>

Hope this helps!
Similar questions