Get the App
SLTechnology News&Howtos  ›  Development  › 

How to write the html5 newline tag

Shulou Source: shulou.com Published: 2022-06-01 05:19:16 10月03日 Update

This article mainly explains the "html5 newline mark how to write", the article explains the content is simple and clear, easy to learn and understand, the following please follow the editor's train of thought slowly in depth, together to study and learn "html5 newline mark how to write" it!

In html5, the newline tag is "

"you can insert a simple newline character in an HTML document, and the content after the tag will start on the next line. Br tags can be written in three ways:"

",", "", "

The operating environment of this tutorial: windows7 system, HTML5 version, Dell G3 computer.

In html5, the newline tag is "

".

The tag is an empty tag (no element content), and some people call it a single tag (no closing tag).

The tag can insert a simple newline character in the HTML document, and the content after the tag will start on the next line.

Example:

HTML br tag

I am a test text! I am a test text! I am a test text!

I am a test text!

I am a test text! I am a test text!

Description:

There are three ways to write a label that will not be wrong, that is,

, these three ways of writing.

In xhtml, like

Similar single tags need to use "/" to close themselves, such as:, there is no such way of writing, but it will not report an error in html. Although all three ways of writing are OK, it is recommended that they be written as

Or more rigorous.

If it is in xhtml, it must be written as or

.

Thank you for your reading, the above is the content of "how to write html5 newline marks". After the study of this article, I believe you have a deeper understanding of how to write html5 newline marks, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Tags: Tags newline characters text tags tests content writing learning one line document is in rigorous elements that is suggestions ideas situations tutorials articles more Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Linux Redmi Microsoft Huawei OPPO Reno