Answers for "html draw horizontal line"

3

html horizontal line style

<!-- HTML -->

<!-- You can change the style of the horizontal line like this: --> 

<hr style="width:50%", size="3", color=black>  


<!-- Or like this: -->

<hr style="height:2px; width:50%; border-width:0; color:red; background-color:red">
Posted by: Guest on July-26-2020
16

horizontal line html

<!-- code -->

<hr>

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

how to draw a horizontal line in javascript

var elem = document.createElement("hr");
elem.setAttribute("width", "100px");
document.body.appendChild(elem);
Posted by: Guest on May-20-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

Code answers related to "html draw horizontal line"

Browse Popular Code Answers by Language