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 a webpage with HTML describing your department use paragraph and list tags.

View Solution


Open your chosen code editor and create a new HTML document.

View Solution


Create an HTML page containing the following polynomial expression.

View Solution


Create a webpage named welcome.html that includes.

View Solution


Latest Current Affairs 2026 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