Posts in current category
May 02, 2021 11:07 HTML
HTML can split a document into multiple levels.
< p > 这是一个段落 </ p >
< p > 这是另一个段落 </ p >
browser automatically adds empty lines before and after the previous one.
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
In the HTML language, a label is
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.
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.