Break Tag in HTML

 Break tag can be represented using <br>.

  • It moves the cursor from current line to next line.
  • Using break tag you can increase the number of lines with empty text.
  • Closing of break tag is not necessary.
  • Used for creating a new line.

Explanation  with MS Word:

Without <br> Tag:

Without Break Tag
Without Break Tag


With <br> Tag:

With Break Tag
With Break Tag


Before using <br>:

<!DOCTYPE html>
<html>
<head>
     <title>Break tag</title>
</head>
<body>
     <a href="https://www.google.com/">Google</a>
     <a href="https://www.youtube.com/">YouTube</a>
     <a href="https://www.googlemaps.com/">Maps</a>
</body>
</html>


Output:

Without <br> tag
Without <br> tag

All links in same line because there is no <br> tag.


With <br> tag:

<!DOCTYPE html>
<html>
<head>
     <title>Break tag</title>
</head>
<body>
     <a href="https://www.google.com/">Google</a><br>
     <a href="https://www.youtube.com/">YouTube</a><br>
     <a href="https://www.googlemaps.com/">Maps</a>
</body>
</html>

Output:


With <br> tag
With <br> tag

Post a Comment

Post a Comment (0)

Previous Post Next Post