ad

Wednesday, September 10, 2025

HTML
Tag Explained How to Add Line Breaks in HTML

HTML <br> Tag Explained How to Add Line Breaks in HTML




html Line Break tag 

A line break ends the line you are currently and resumes on the next line. Placing <br /> tag within the code to break the line. Use the <br /> tag within the <p> use to paragraph tag.

A line break is marked up as follows:

The <br> tag inserts a single line break. 

The <br> tag is an empty tag which means that it has no end tag.

The <br> tag is and empty tag which means that it has no end tag. 

The <br> tag is useful for the writing addresses or poems.

<br> tag to enter line breaks,is  not to separate paragraphs.


<!DOCTYPE html>

<html>
  <body>
<p>
  To break lines<br>in a text,<br>use the br element.
  </p>
</body>
  </html>

HTML <br> Tag 

Explain Program

Step 1 ]  

<!DOCTYPE html>

  • Declares that the document is an HTML5 document.

Step  2]  

<html> & <body>

  • Root and body of the HTML page. The content of the page goes inside <body>.

Step 3]  

<body>......</body>

 contains visible to the user  the web page

Step 4] 

<p>

This defines a paragraph of text.

To break lines<br> a text<br>use the br element.

  • <br>  line break element.
  •  content new line, like“Enter” on a keyboard.

</p>

HTML <br> Tag
OUTPUT

To break lines

in a text,

use the br element

Related Post :-

c program print right half pyramid

c program to check number is even or add

what is the c language

No comments:

Post a Comment