How to insert horizontal lines in HTML?

 Posted by Pgayath on 9/21/2012 | Category: HTML 5 Interview questions | Views: 2742 | Points: 40
Answer:

The <hr> tag is used to insert a horizntal line.

Example: <html>
<body>

<p>The hr tag defines a horizontal rule:</p>
<hr />
<p>This is a paragraph 1</p>
<hr />
<p>This is a paragraph 2</p>
<hr />
<p>This is a paragraph 3</p>
</body>
</html>


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response