HTML paragraph P

Source: Internet
Author: User

You can split an HTML document into several paragraphs.

HTML Paragraph

The paragraph is defined by the <p> tag.

Instance
<p>this is a paragraph</p><p>this is another paragraph</p>

Note: The browser automatically adds blank lines to and from the paragraph. (<p> is a block-level element)

Tip: Using an empty paragraph mark <p></p> to insert a blank line is a bad habit. Replace it with a <br/> tag! (But don't use the <br/> tag to create a list.) Do not worry, you will learn the HTML list later in the space. )

Don't forget to end the tag

Even if you forget to use the end tag, most browsers will display HTML correctly:

Instance
<p>this is a paragraph<p>this is another paragraph

The above example is not a problem in most browsers, but do not rely on this approach. Forgetting to use the end tag can produce unexpected results and errors.

Note: It is not allowed to omit the end tag in future HTML versions.

Tip: Closing HTML by closing a tag is a future-proof way to write HTML. Clearly mark where an element begins and where it ends, making the code easier to understand, both for you and for the browser.

From: http://www.w3school.com.cn/html/html_paragraphs.asp

HTML paragraph P

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.