HTML wrap br and p tags

HTML is originally a grammar used to edit the content of web pages. Of course, there will be functions such as line breaks or paragraphs for the layout of this article. In HTML, line breaks have two common tags, namely <br> and <p> , Where the <br> tag represents a new line, while the <p> tag will change two lines. The <p></p> tag itself also means a paragraph.


HTML wrapping example
This is the first line<br>
This is the second line<p>
This is the third line
The result is
This is the first line
This is the second line

This is the third line
You can see that the distance between the first line and the second line is only a new line, and the third line is changed by two lines because of the use of the <p> tag.

Post a Comment

0 Comments