The br
tag is used to indicate a semantic break in a paragraph. The browser inserts a line break when it encounters this element. Therefore, it continues rendering the content on the next line. This is an empty tag. This element can appear in any element that can contain text.
A paragraph is used to introduce a new idea in a text. The br
element can be used when a new idea needs to be introduced, but a new paragraph is not warranted.
Attributes
Apart from the Core Attributes, there is only the clear
attribute, which is deprecated in favor of CSS.
clear
- This attribute can take the values
none
,left
,right
andall
. This specifies if the content after thebr
tag should be rendered in a new line that starts vertically below any floated elements.
No comments:
Post a Comment