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