Answers for "horizontal line w3schools"

16

horizontal line html

<!-- code -->

<hr>

<!-- code -->
Posted by: Guest on February-18-2020
2

which is right <hr> or <hr/> in html

<hr> <!--   it represents a horizontal line break, in HTML4.0 we use <hr>, 
            in XHTML1.0 we use <hr/>,  in HTML5(which is the current version of 
            HTML) we can use both <hr> and <hr/>    
       -->
Posted by: Guest on September-10-2020
0

how to make a horizontal line in html

<!-- You can add a horizontal line in html by a <hr> tag.-->
<!Doctype Html>

<html>

  <head>
  
  	<meta charset="UTF-8">
    <title>HR Tag</title>
    
  </head>
  <body>
  
    <h1>Hello</h1>
    <hr>
  
  </body>
  
</html>


<hr>
Posted by: Guest on July-21-2021

Browse Popular Code Answers by Language