" or "
"."/>
" or "
".">
Home >Web Front-end >Front-end Q&A >What elements can insert line breaks in html5?
In HTML5, you can use the br tag element to insert a line break. The function of this tag is to insert a simple line break. It is an empty tag, which means it has no end tag. The syntax is "
” or “
”.
The operating environment of this tutorial: Windows 10 system, HTML5 version, Dell G3 computer.
What elements in html5 can insert a line break
tag inserts a simple line break.
tag is an empty tag, meaning it has no closing tag.
Please use the
tag to enter blank lines instead of dividing paragraphs.
The
tag is very useful when writing address information or poetry.
The example is as follows:
<html> <head> <meta charset="utf-8"> <title>123</title> </head> <body> <p> 使用 br 元素<br>在文本中<br>换行。 </p> </body> </html>
Output result:
Recommended tutorial: "html video tutorial 》
The above is the detailed content of What elements can insert line breaks in html5?. For more information, please follow other related articles on the PHP Chinese website!