Name
br
Synopsis
<br />
Attributes
Core (id,
class, style, title ) |
Deprecated Attributes
clear="none | left | right | all
"
|
The br
element is
straightforward to use, as shown in this example.
<p>This is a paragraph but I want<br />
this text to start
on a new line in the browser.</p>
The clear
attribute is used
with the br
element to specify
where the next line should appear in relation to floated elements.
For example, if an image has been floated to the right, then adding
the markup <br clear="right"
/>
in the flow of text causes the new line to begin
below the image on the right margin. The value
left
starts the next line below
any floated objects on the left margin. The value all
starts the next line below floats on
both margins. The default, none
,
causes the next line to start where it would normally.
Get Web Design in a Nutshell, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.