HTML tags for standard web pages
1.HTML Document declaration: <! DOCTYPE html>
2. Page Title:<title>~</title>
3. Page encoding: <meta charset= "Utf-8"/>
Utf-8 is a multi-language encoding (recommended)
GB2312 is a simplified Chinese code
4. Page key: <meta name= "keywords" content= "keyword 1, keyword 2,..."/>
Page main content: <meta name= "description" content= "Content Introduction"/>
Note: The META tag is an accessible tag for the HTML language and is typically used to refine the search engine, which is located in the HTML document header.
Generate HTML Document initial structure
1.HTML5 Standard structure:html:5+Tab key or ! +Tab key
The resulting results are as follows
<! DOCTYPE html>
2.HTML4 transition structure:html:xt+Tab key
The resulting results are as follows
<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
HTML tag Note points: