HTML can split a document into paragraphs. The paragraph is through the Note: the browser automatically adds blank lines before and after the paragraph. ( Even if you forget to use the closing tag, most browsers will display the HTML correctly: The above example is fine in most browsers, but don’t rely on it. Forgettingto use the closing tag can produce unexpected results and errors. Note: the closing tag is not allowed to be omitted in future versions of HTML. If you want to wrap a new line without generating a new paragraph, use the We are not sure exactly how HTML is displayed. The size of the screen and the adjustment of the window can lead to different results. With HTML, you cannot change the effect of the output by adding extra spacesor line breaks to the HTML code. When the page is displayed, the browser removes excess spaces and blank lines from the source code. All consecutive spaces or blank lines are counted as a space. It is important to note that all consecutive blank lines(newlines) in the HTML code are also displayed as a space. (this example demonstrates some problems with HTML formatting.) HTML paragraph How to display HTML paragraphs in a browser. New line Use line breaks in HTML documents. Typesetting a Tang poem in HTML code When the browser displays HTML, it will omit the extra white space characters (spaces or carriage returns, etc.) in the source code. More paragraphs The default behavior of the paragraph. The label reference manual for the rookie tutorial provides more information about HTML elements and their attributes. Label Description < p > Define a paragraph < br > Insert a single line break (line wrap) 11.8.1. HTML paragraph ¶
<p>
defined by the label.Example ¶
<p>This is a paragraph</p><p>This is another paragraph</p>
</p>
is a block-level element) 11.8.2. Don’t forget the closing tag. ¶
Example ¶
<p>This is a paragraph<p>This is another paragraph
11.8.3. HTML wrapping ¶
<br>
label:Example ¶
<p>This paragraph demonstrates the effect of branching</p>
<br/>
element is an empty HTML element. Because closing the tag does notmake any sense, it does not end the tag. 11.8.4. HTML output-use reminder ¶
11.8.5. An example of this site ¶
11.8.6. More Instance ¶
11.8.7. HTML tag reference manual ¶