<br>: The HTML Line Break Element
1 Description
The HTML <br>
element directs the web
browser to insert a line break where the element appears. This
is useful when you want to control where one line of text ends
and the next line of text begins, rather than allowing the web
browser to decide.
The <br>
element is self closing, and may not contain
content. Self closing means that there is only one tag that
looks like this <br/>
.
2 Examples
<!DOCTYPE html>
<html>
<head>
<title>Example Page</title>
</head>
<body>
<h1>Mailing Address of Fictitious Company</h1>
<p>Notice the useage of the br element to create line breaks in the mailing address.</p>
<input name="test_input" id="search" placeholder="Search"/>
<address>
Example Company Inc.<br/>
1234 Example Street<br/>
New York City, New York 1003
</address>
</body>
</html>
This document was last updated: