May 02, 2021 HTML
HTML can split a document into multiple levels.
The beginning
<p>
label.
Note: The
browser automatically adds empty lines before and after the previous one.
(
</p>
element
Even if you forget to use the end tag, most browsers display HTML correctly:
The above examples are no problem in most browsers, but don't rely on this practice. Forgetting to use the end label can produce unexpected results and errors.
Note: In future HTML versions, the end label will be omitted repeatedly.
If you want to line up (a new line) without generating a new starting point, use the
<br />
.
In the HTML language, a label is
<br />
as a line break, which can be understood as simply entering an empty line, rather than being used to split the content:
This is a demonstration of the effect of a branch.
The element is an empty HTML element.
Because it doesn't make any sense to close the label, it doesn't end the label.
We can't be sure what html will look like. The size of the screen, as well as the adjustment of the window, can lead to different results.
For HTML, you can't change the effect of the output by adding extra space or line-ups to your HTML code.
When the page is displayed, the browser moves the extra space and empty lines in the source code. A ll consecutive spaces or empty lines are counted as a space. It is important to note that all consecutive empty lines (line changes) in the HTML code are also displayed as a space.
(This example illustrates some problems with HTML formatting)
How HTML is displayed in the browser.
Use line new lines in HTML documents.
Layout a Tang poem in HTML code
When the browser displays HTML, it omits extra blank characters (spaces, carriage returns, etc.) from the source code.
the behavior that comes with it.
W3CSchool's label reference manual provides more information about HTML elements and their properties.
Label | describe |
---|---|
<p> | Define a paragraph |
<br> | Insert a single folding (wrap) |