Line Break and Horizontal Line in HTML

Line Break (<br>)

The <br> tag is used to insert a line break in text, forcing the next content to start on a new line.


📌 Key Features of <br>:

  • ✔ Self-closing tag (no closing </br> required)
  • ✔ Used inside paragraphs, headings, and other text content

Horizontal Line (<hr>)

The <hr> tag is used to create a horizontal line (divider) between sections of content.


📌 Key Features of <hr>:

  • ✔ Self-closing tag (no </hr> required)
  • ✔ Creates a thematic break (used for section division)
Qus. 1 : Which of the following is true ?

  1. <br> tag is used to have a blank line
  2. In tables, the header cell is centered by default and the data cells are right aligned
  3. The <TR> is used to create a data cell
  4. INPUT tag must have at least 4 attributes

Programs

Create html web page for Gateway of India

View Solution


Latest Current Affairs 2025 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad