Chapter 1th and 2 of the CSS3 cheats

Source: Internet
Author: User

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




2) Use CSS to link style sheets


HTML4.01 and Xhtml1.0:

Chapter 1th and 2 of the CSS3 cheats

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: 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.