Xhtml
1,xhtml is an HTML 4 that was formed with XML 1.0.
2, a simple and comprehensive XHTML should be the case (for most Chinese):
<?xml version= "1.0" encoding= "gb2312"?>
<! DOCTYPE html
Public "-//W3C//DTD XHTML 1.0 transitional//en"
"Dtd/xhtml1-transitional.dtd" >
<title> title </title>
<meta http-equiv= "Content-type" content= "application/xhtml+xml; charset=gb2312 "/>
<link rel= "Alternate" type= "Application/rss+xml"
title= "Sticky rice (Huyoo353) ' s Blog RSS 2.0"
href= "Http://blog.csdn.net/huyoo/Rss.aspx"/>
<link rel= "shortcut icon" href= ". /favicon.ico "type=" Image/x-icon "/>
<link rel= "icon" href= ". /favicon.ico "type=" Image/ico "/>
<link rel= "stylesheet" media= "All" type= "Text/css" href= "Css/style.css"/>
<link rel= "stylesheet" media= "text" type= "Text/css" href= "Css/print.css"/>
<body>
<div id= "MainContent" class= "main" >
<p> body <a href= "Http://blog.csdn.net/huyoo" > Access to my blog</a>
<a href= "Http://blog.csdn.net" >CSDN.net</a>
</p>
</div>
</body>
Note: <?xml version= "1.0" encoding= "gb2312"?> is not on the vast majority of Chinese websites that claim to conform to XHTML specifications. Because XHTML is an XML file, its root node has and can only have one, or lowercase
"DTD/XHTML1-TRANSITIONAL.DTD" > should actually write "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >. As for why this is written, because IE browser know how it is, and the biggest advantage is that if you are to the intranet to do the site, IE will not say that can not find the DTD resources (I just eat this bitter)
<meta http-equiv= "Content-type" content= "application/xhtml+xml; charset=gb2312 "/> is a meta type and a character set.
<link rel= "Alternate" type= "Application/rss+xml"
title= "Sticky rice (Huyoo353) ' s Blog RSS 2.0"
href= "Http://blog.csdn.net/huyoo/Rss.aspx"/> is the RSS tag, the general trend.
<link rel= "shortcut icon" href= ". /favicon.ico "type=" Image/x-icon "/>
<link rel= "icon" href= ". /favicon.ico "type=" Image/ico "/> is the website's personality icon, you should also want one."
<link rel= "stylesheet" media= "All" type= "Text/css" href= "Css/style.css"/>
<link rel= "stylesheet" media= "text" type= "Text/css" href= "Css/print.css"/> is CSS, it is xhtml+css to achieve data and performance separation. Here to provide a page and print two styles.
The contents of the <body> area will not be said. It is worth mentioning that the label must be nested complete, correct, the label must also be closed. In addition, attribute values must be enclosed in quotes, property values cannot be minimized (such as <body today>), and property values are complete (for example, <body today= "Today" >).