ad

Monday, November 24, 2025

What is the html BR tag with example

What is the html BR tag with example

web designing theory

What is the html BR tag with example

Syntax 

 Syntax of HTML <Br> tag


<br>
.
.
</br>

Example 



<!DOCTYPE html>
<html>
    <body>

     
      <h2> Web designing theory blogspot.com</h2>
      <p>
       webdesigningtheory.blogspot.com<br>
        web designing theory offers simple and practical lessons <br>
        in programming and web design.<br>
        join us and start learning today.</p>
    </body>
</html>

What is the html BR tag with example

Explain Program

Step  1] 

<!DOCTYPE html>

This declare the document type.

browser that the document is written in html

Step 2 ]

<html>.... . </html>

html is the root element of the html page.

 Every thing inside it is part of the webpage.

Step 3]

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

<body> tag contains  all the visible content of the page.

inside <body> show the browser screen.

Step 4]

<h2> Web designing theory blogspot.com</h2>

<h2> level 2 heading tag.

this line displays web designing theory blogspot .com heading bold & larger font.

Step 5]

<p>.....</p>

<p> is paragraph tag use regular text.

inside <p> treated as paragraph.

<br >

<br> tag line break tag.

 Step 6]

closing the Tag


</body>

 </html>

<!DOCTYPE html> → Declares HTML5

<html> → Starts HTML document

<body> → Contains visible content

<h2> → Heading

<p> → Paragraph

<br> → Line break

</body> and </html> → Close body and HTML


What is the html BR tag with example

Output

What is the html BR tag with example


Related Post :-