当前位置: 首页 > 网络学院 > 网页制作基础教程 > HTML > HTML <br>标签
The <br> tag inserts a single line break.
<br>标签可以插入一单独的换行
The <br> tag is an empty tag (means that it has no end tag - the following is wrong: <br></br>).
<br>标签是一个空标签(这意味着它并没有结束标签 - 这样是错误的:<br></br>)
In HTML the <br> tag has no end tag.
在HTML中<br>不需要结束标签
In XHTML the <br> tag must be properly closed, like this: <br />.
在XHTML中<br>标签必须使用合理的关闭,像这样:<br />
Note: Use the <br> tag to enter blank lines, not to separate paragraphs.
可以使用<br>标签来加入空行,但别用空段落
源代码 | 输出结果 |
---|---|
This text contains<br />a line break | This text contains |
id, class, title, style |
For a full description, go to Standard Attributes.
查看完整的描述
Line breaks
How to insert line breaks in an HTML document.
给HTML文档加上换行