HTML <br> Tag
In this tutorial, we will learn about break tag in HTML with the help of examples.
<br> Tag
Break tag <br> tag is used to insert a single line break in the text.
Note : Break tag is a empty/singular/void tag i.e. it has no end tag.
Syntax
<br>
Example
<!DOCTYPE html>
<html>
<head>
<title>Br Tag</title>
</head>
<body>
<h2>Whale</h2>
<blockquote>Whales are a widely distributed and diverse group of fully aquatic placental<br>
marine mammals. Whales are fully aquatic, open ocean creatures, and feed,<br>
mate, give birth, suckle and raise their young at sea. Whales range in size from<br>
the 2.6 metres (8.5 ft) and 135 kilograms (298 lb) dwarf sperm whale to the<br>
29.9 metres (98 ft) and 190 metric tons (210 short tons) blue whale, which is<br>
the largest known creature that has ever lived.</blockquote>
</body>
</html>
Output
Whale
Whales are a widely distributed and diverse group of fully aquatic placental
marine mammals. Whales are fully aquatic, open ocean creatures, and feed,
mate, give birth, suckle and raise their young at sea. Whales range in size from
the 2.6 metres (8.5 ft) and 135 kilograms (298 lb) dwarf sperm whale to the
29.9 metres (98 ft) and 190 metric tons (210 short tons) blue whale, which is
the largest known creature that has ever lived.
Global Attribute
Br Tag support all the global attributes of HTML.
Event Attribute
Br Tag support all the event attributes of HTML.
Next Tutorial
We hope that this tutorial helped you develop better understanding of the concept of bracket tag in HTML.
Keep Learning : )
In the next tutorial, you'll learn about HTML button
Tag.