Learn HTML – Part 7 – Line Break Tag

Understanding the <br> Tag in HTML (Line Break Tag)

The <br> tag is used to insert a line break in the text. It’s useful when you want content to start from a new line without starting a new paragraph. This is an empty tag (no closing tag required).

Tag Syntax:

Line one<br>Line two

Attributes:

  • The <br> tag typically doesn’t require attributes.
  • However, clear (deprecated) was used in the past for controlling float behavior.

Example:

<p>This is the first line.<br>This is the second line.</p>

Workbook:

Facebook
WhatsApp
Twitter
LinkedIn
Pinterest

Leave a Comment

Your email address will not be published. Required fields are marked *

About Author
Willaim Wright

Voluptas feugiat illo occaecat egestas modi tempora facilis, quisquam ultrices.

Scroll to Top