First chapter CSSNeed forHTML
1, can forget theHTMLtags and attributes
1) do not use<font>to control the display of text
2) do not use<b>and the<i>to make the text bold and italic
3) do not use<table>label for page layout
4do not use a clumsy, decorative content-only<body>label properties, such asbackground,bgcolor,text, link,ALinkand theVlinkcolors and pictures can only be set for Web pages and text and links
5) No abuse<br>label
2,DOCTYPEImportance of (document type)
1)HTML5: <!doctype html>
2) html4.01:<! DOCTYPE HTML PUBLIC "-/w3c//dtd HTML 4.01 transitional//en" "HTTP://WWW.W3.ORG/TR/HTML4/LOOSE.DTD" >
3) xhtml1.0:<! DOCTYPE HTML Public "-/W3C//DTD XHTML 1.0 transitional//en" "3, letIE8SupportHTML5:SetReset
, allows the browser to accept HTML5 tags, and implements the CSS applied to those tags .
4.let IE8 and later versions display the Web page in their standard mode: Set
Chapter II Creating styles and style sheets
1. Style contains elements:Selector(selector),DeclarationBlock(declaration block),Declaration(Declaration) ,Property (attribute), value
2. Internal style sheet
1) html5:
2) HTML4.01 and Xhtml1.0:
3. External style sheet
1) using HTML to link style sheets
Html5:
Html4.01:
Xhtml1.0:
2) Use CSS to link style sheets
html5:
HTML4.01 and Xhtml1.0:
Chapter 1th and 2 of the CSS3 cheats