HTML Line Break

 

3. Line Break (<br>)

The <br> tag inserts a single line break. It is often used in text where spacing between lines is required.

Attributes:

None (it is a self-closing tag).

Example:

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

Output:

This is the first line. This is the second line. This is the third line.

Explanation: Each <br> tag breaks the line.

Comments

Popular posts from this blog

Introduction to Computer

History of Computer

Computer Generation