Home >Web Front-end >HTML Tutorial >Usage of br tag in html
Usage of tag in HTML: Create line breaks in HTML documents. Just insert the tag where you want a line break. NOTE: It does not automatically add spacing or vertical space, CSS styling is required.
Usage of
tag in HTML
Function of tag The
tag is used to create line breaks in HTML documents. It is an empty element, which means it has no closing tag.
Usage of tags
To use the
tag, just insert it where a line break is required. For example:
<p>第一段文字。<br> 第二段文字。</p>
The above code will create the following output:
First paragraph of text.
The second paragraph of text.
Note
margin
or padding
. The <p></p>
paragraph tag. Paragraph tags create new paragraphs, while line break tags only insert line breaks. white-space: nowrap
can disable the wrapping effect of the The above is the detailed content of Usage of br tag in html. For more information, please follow other related articles on the PHP Chinese website!