A place to be aware of in accordance with the standard HTML standards

Source: Internet
Author: User

  Standard HTML-compliant source code

  A place to be aware of in accordance with the standard HTML standards

1, first to DOCTYPE declaration

2,

3, pay attention to a pair of combination of labels such as <title> will end with </title>,

A common pair of combination tags are div, p, title, head, HTML, table, TR, TD, Span, style, B, strong, UL, OL, Li, DL combination (DL, DT, DD), body

4, the individual type label such as Line label BR and other labels will be <br/> label to represent

Individual labels are br, meta, link

5, label name attention as far as possible with half-width English lowercase, such as <div>, as little as possible with full-width capital such as <DIV>

According to the HTML standards, Web standards, the standards are required to follow the above points to comply with the standards.

How to know when to need a pair of labels, when the need for a separate type, the need for everyone in the development of DIV+CSS when more attention to remember, there is the use of Dreamweaver software to simple judgment.

Use Dreamweaver to determine the label method as follows

You can write code in the "Code" in the Dreamweaver software, generally Dreamweaver software writes to ">" When the end of a label, if the individual type of label Dreamweaver software will automatically convert to "/>" such as "<BR/ > ", if the corresponding pair of labels will not be converted to write" > "tab will display" > "label and will not change to"/> ", this time you need to" </"tag name plus" > "to end the tag, such as" <div> " Will end with "</div>".

A place to be aware of in accordance with the standard HTML standards

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.