HTML has a basic skeleton, which can be quickly generated with sublime:
650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M02/8F/8D/wKioL1jk3NnzvNLXAACZI0YtG0o575.png-wh_500x0-wm_ 3-wmp_4-s_2377028654.png "title=" Subline.png "alt=" Wkiol1jk3nnzvnlxaaczi0ytg0o575.png-wh_50 "/>
Skeleton Abstract Out:
1 2 3 4 5 <body> 6 7 </body> 8 |
The outermost label of the Web page is the tag pair, which has two parts, head and body , respectively. .
The head tag describes the configuration of the Web page, and the content in thebody is what the user can see.
The complete skeleton:
1 <! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd "> 2 3 4 <meta http-equiv= "Content-type" content= "Text/html;charset=utf-8" > 5 <title> ha ha </title> 6 7 <body> 8 I am a main title 9 <p> I was a little paragraph </p> Ten </body> One |
Line 1 , is the declaration of the page header, this line of statements, do not recite, who is stupid. The term is called DOCTypeDefintion dtd w3c is out of the web standard organizational structure. html css js w3c definition released. world Wide Web Coalition, International World Wide Web Consortium. Page declaration header can tell the browser, which is a standard page.
Line 2 , is the largest html tag, all the content of the Web page, will be wrapped in this tag in the child.
we found that there are two attributes in the HTML tag:
xmlns= "http://www.w3.org/1999/xhtml" namespace, is a specification;
Xml:lang= "en" language is English
Line 3 , which is the head tag, is the configuration.
Line 4 ,<meta http-equiv= "Content-type" content= "Text/html;charset=utf-8" > Configuration of the character set
Line 5 , <title> ha ha </title> page title, can be displayed in the browser's tab bar.
Line 7 ,thebody tag is the content of the Web page, users can see.
HTML Basic Course (1)