As your own HTML dictionary, the usual list of ...
Logical architecture Diagram:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/73/63/wKiom1X7voyBSFoKAAFVH68KQ-A567.jpg "title=" 2.png " alt= "Wkiom1x7voybsfokaafvh68kq-a567.jpg"/>
Basic function:
HTML is an abbreviation for the English Hyper Text mark-up Language (Hypertext Markup Language), which is a standard language (tag) for making Web pages. The equivalent of a uniform set of rules, everyone to abide by him, so that you can let the browser according to the rules of the markup language to explain it.
The browser is responsible for translating the label into a user "readable" format, presented to the user! (Example: Djangomoan template engine)
Doctype
DOCTYPE tells the browser what HTML or XHTML specification to use to parse an HTML document
The difference between having and not
-
Backcompat: Standard compatibility mode is not turned on (or is called "weird" mode [Quirks modes], promiscuous mode)
-
Css1compat: Standard compatibility mode is turned on (or called strict mode [standards Mode/strict mode])
This property will be recognized and used by the browser, but if your page does not have a DOCTYPE declaration, then compatmode default is Backcompat, which is the beginning of the devil-the browser in its own way to parse the rendered page, then the different browsers will show different styles. If your page is added, then it is equivalent to opening the standard mode, then the browser will have to honestly interpret the rendering page according to the standards of the Web, so that your page in all browsers will display a look.
What's the use?
DOCTYPE tells the browser what HTML or XHTML specifications are used to parse the HTML document, and the DTD file contains tags, attributes, properties, and constraint rules.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/73/60/wKioL1X7wXSCClecAAcqZbFY9iQ103.jpg "title=" 3.png " alt= "Wkiol1x7wxscclecaacqzbfy9iq103.jpg"/>
Meta (metadata information)
Provides meta-information about pages, such as page encodings, refreshes, jumps, descriptions and keywords for search engines and update frequency
-
Page encoding (tells the browser what encoding)
< meta http-equiv= "Content-type" content= "Text/html;charset=utf-8" >
Refresh and jump
< meta http-equiv= "Refresh" content= "30″>
< meta http-equiv= "Refresh" content= "5; Url=http://www.autohome.com.cn "/>
Keywords
< meta name= "keywords" content= "StarCraft 2, star old boy, interview, F91, small color, JOY" >
Describe
Example: Cnblogs
X-ua-compatible
Internet Explorer 8 provides tighter support for industry standards than any earlier browser version. As a result, sites designed for older browsers may not appear as expected. To help mitigate any problems, Internet Explorer 8 introduces the concept of document compatibility, which allows you to specify the version of Internet Explorer that your site supports. Document compatibility adds new patterns to Internet Explorer 8, which tells the browser how to interpret and render the site. If your site does not display correctly in Internet Explorer 8, you can update the site to support the latest WEB standards (preferred), or you can force Internet Explorer 8 to display content in the same way that you view the site in an older version of the browser. You can do this by adding the X-ua-compatible header to the Web page by using the META element.
When Internet Explorer 8 encounters a webpage that does not contain a x-ua-compatible header, it uses directives to determine how to display the Web page. If the directive is missing or does not specify a standard-based document type, Internet Explorer 8 displays the page in IE5 mode (Quirks mode).
Title
Web header information
Link
-
As1
< link rel= "stylesheet" type= "Text/css" href= "Css/common.css" >
Icon
< link rel= "shortcut icon" href= "Image/favicon.ico" >
Style
Write a style on a page
For example:
< style type= "Text/css" >
. bb{
background-color:red;
}
</style>
Script
-
Introduction of documents
< script type= "Text/javascript" src= "Http://www.googletagservices.com/tag/js/gpt.js" > </script >
Write JS code
< script type= "Text/javascript" > ... </script >
The point is coming ....
Labels are generally divided into two categories: block-level labels and inline labels
-
A, span, select, etc.
-
Div, H1, p, etc.
Various symbols
Http://www.cnblogs.com/web-d/archive/2010/04/16/1713298.html
P and BR
P is the paragraph, there is a gap between the default paragraphs!
BR is line break
A label
< a href= "http://www.autohome.com.cn" > </a>
1. Target property, _black means open on new page
2. Anchor
H label H1h2h3h4h5h6select label
Please download the attachment and open the index.html with your browser.
HTML Basic usage