This time I will bring you how to use H5 paragraphs, what are the precautions when using H5 paragraphs, the following is a practical case, let’s take a look.
HTML can divide the document into several paragraphs, which can make the document more regular and beautiful.
HTML paragraph:
In HTML documents, paragraphs are defined through
tags;
Paragraph 1
Paragraph 2
ps: Run the HTML document and the browser will automatically add blank lines before and after the paragraph
Most HTML documents now automatically complete end tags, but everyone still has to develop a good habit and proactively add end tags. I believe that in the future development trend of HTML, omission of end tags will not be allowed.
When writing a paragraph, if you don't want to start a new paragraph with a line break, you can use the
tag to break the line in the paragraph without affecting the editing of the paragraph.
First line
The second line
You can also use the
tag for complete branches within a paragraph, and the effect is quite good.
The
element here is an empty element of HTML. The closing tag has no meaning, so it has no closing tag.
HTML output usage reminder:
We are unable to determine the exact effect of the HTML being displayed. The size of the screen, as well as adjustments to the window, may lead to different results.
With HTML, you cannot change the output by adding extra spaces or line breaks to the HTML code.
When displaying the page, the browser will remove extra spaces and empty lines in the source code. All consecutive spaces or empty lines are counted as one space. Note that all consecutive empty lines (newlines) in HTML code are also displayed as a single space.
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> </head> <body> <h1>春晓</h1> <p> 春眠不觉晓, 处处闻啼鸟。 夜来风雨声, 花落知多少。 </p> <p>注意,浏览器忽略了源代码中的排版(省略了多余的空格和换行)。</p> </body> </html>
I believe you have mastered the method after reading the case in this article. For more exciting information, please pay attention to other related articles on the php Chinese website!
Recommended reading:
H5 C3 JS to achieve floor jumping special effects
The above is the detailed content of How to use H5 paragraphs. For more information, please follow other related articles on the PHP Chinese website!