"Head first HTML and CSS, XHTML"-sixth chapter-Standard, Specification, seventh chapter--xhtml

Source: Internet
Author: User

2015-04-01 19:48:22

Sixth chapter-Standards, norms

1. In accordance with the strict specifications of HTML 4.01, inline elements must be included in the block element, of course, not to do so can pass.

2. The standard Web page loads faster, is easier to run on other mobile devices, and is easily accepted by users with screen readers because of visual impairments.

3. Take the time to read the wrong information and you will begin to understand their tricks.

4. Fill <body> with only block elements (

5. Block elements are not allowed to be contained in inline elements under any circumstances. Only text and other inline elements can be embedded within an inline element.

6. block elements are forbidden to be included in the <p> element, only the text can form a paragraph , and the inline element may be used in the paragraph (<em><a><strong><q> ).

7. The list item can be anything,<li> the rules of the element are loose, you can add text, inline elements, or block elements to the list item.

8. Out of the <a> element, the other inline elements can be self-nested. Additionally the, element is empty.

Seventh Chapter--xhtml

The 1.

2. All element names must be indicated in lowercase letters.

3. All attribute values must be non-empty, with double quotation marks.

4. All empty tags should end with "/>". ps:/should have a space before, or some older browsers may not be recognized.

5.DOCTYPE is really important, it allows the browser to know exactly what the standard amount of HTML, to avoid the browser to judge, and caused the display effect is not uniform.

6.XHTML is XML.

"Head first HTML and CSS, XHTML"-sixth chapter-Standard, Specification, seventh chapter--xhtml

Related Article

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.