How to correctly use the title element, paragraph, and force newline

Source: Internet
Author: User
How to correctly use the title element, paragraph, and force line feed how to correctly use the title Element
The HTML title element types are h1, h2, h3, h4, h5, and h6. numbers indicate the title structure level. We should take the title as seriously as we learned at school (haha, but I have never read many books, 69 Junior High School-translator ).

The title of the highest level must be h1 on the page. It should describe what the page is. Most pages have an h1 title, but complex page files may have more than one h1 tag.

The h2 title will mark the next structure level, the next level is h3, and so on, instead of jumping from h2 to h4. H4 should not follow h2.

The Hn element type is important for marking titles. Readers of the livive technology such as the screen can use an appropriate title to understand the overview of the file. If we use..., they won't be able to understand it.

How to correctly use P and BR
The P element marks a paragraph of the text. A paragraph contains one or more sentences.

Forced line feed (br) is usually just a superficial tool and should be processed by CSS rather than HTML. However, forced line breaks can also be semantically written in some places, such as poetry, songs, email addresses, and computer code demonstrations, which may constitute a legal purpose, however, it is absolutely incorrect to use the br to separate paragraphs.

On the other hand, P has a very clear semantic meaning: it represents a paragraph. Sometimes it is incorrect for WEB designers to use P as a common block-level element. It is not hard to see that the label and input label in a form are included in the P label, which is absolutely wrong in semantics. The label and input label do not constitute a "paragraph ".

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.