What is the function of the HTML paragraph
This article mainly explains "what is the function of HTML paragraph". The content of the explanation is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "what is the function of HTML paragraph".
HTML paragraph
The paragraph is through the
Defined by the label
Thisisaparagraph
Thisisanotherparagraph
Note: the browser automatically adds blank lines before and after the paragraph. (
Is a block-level element)
Tip: use empty paragraph marks
It's a bad habit to insert a blank line. Replace it with a label! (but don't use tags to create lists. Don't worry, you'll learn about the HTML list later. )
HTML wrapping
If you want to wrap (new lines) without generating a new paragraph, use the tag:
Thisisaparagraphwithlinebreaks
Element is an empty HTML element. Because closing the tag does not make any sense, it does not end the tag.
Or
You may find that
It's very similar to.
In XHTML, XML, and future versions of HTML, HTML elements without closing tags (closing tags) are not allowed.
even if
There is no problem with the display in all browsers, and use is a longer-term guarantee.
Thank you for your reading, these are the contents of "what is the function of HTML paragraph". After the study of this article, I believe you have a deeper understanding of what the function of HTML paragraph is, 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!