|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
最近群里面很多人在问html5应该怎么学,这个问题其实没有标准答案。我开这个帖子,目的是为了收集大家每天的学习心得,欢迎大家来回复。网页制造poluoluo文章简介:WhenauthoringdocumentisHTMLorXHTML,itisimportanttoAddaDoctypedeclaration.Thedeclarationmustbeexact(bothinspellingandincase)tohavethedesiredeffect,whichmakesitsometimesdifficult.Toeasethework,belowisalistof
WhenauthoringdocumentisHTMLorXHTML,itisimportanttoAddaDoctypedeclaration.Thedeclarationmustbeexact(bothinspellingandincase)tohavethedesiredeffect,whichmakesitsometimesdifficult.Toeasethework,belowisalistofrecommendeddeclarationsthatyoucanuseinyourWebdocuments.
Template
UsethefollowingmarkupasatemplatetocreateanewXHTML1.0documentusingaproperDOCTYPE.Seethelistbelowifyouwishtouseanotherdocumenttype.- <?xmlversion="1.0"encoding="utf-8"?><!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Strict//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><htmlxmlns="http://www.w3.org/1999/xhtml"xml:lang="en"lang="en"><head><title>AnXHTML1.0Strictstandardtemplate</title><metahttp-equiv="content-type"content="text/html;charset=utf-8"/><metahttp-equiv="Content-Style-Type"content="text/CSS"/></head><body><p>…YourHTMLcontenthere…</p></body></html>
复制代码 DTDList
HTML4.01-Strict,Transitional,Frameset:- <!DOCTYPEhtmlPUBLIC"-//W3C//DTDHTML4.01//EN""http://www.w3.org/TR/html4/strict.dtd"><!DOCTYPEhtmlPUBLIC"-//W3C//DTDHTML4.01Transitional//EN""http://www.w3.org/TR/html4/loose.dtd"><!DOCTYPEhtmlPUBLIC"-//W3C//DTDHTML4.01Frameset//EN""http://www.w3.org/TR/html4/frameset.dtd">
复制代码 XHTML1.0-Strict,Transitional,Frameset:- <!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Strict//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Frameset//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
复制代码 XHTML1.1-DTD:- <!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.1//EN""http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
复制代码 XHTMLBasic1.0-DTD:- <!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTMLBasic1.0//EN""http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd">
复制代码 XHTMLBasic1.1-DTD:- <!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTMLBasic1.1//EN""http://www.w3.org/TR/xhtml-basic/xhtml-basic11.dtd">
复制代码 HTML2.0-DTD:- <!DOCTYPEhtmlPUBLIC"-//IETF//DTDHTML2.0//EN">
复制代码 HTML3.2-DTD:- <!DOCTYPEhtmlPUBLIC"-//W3C//DTDHTML3.2Final//EN">
复制代码 MathML1.01-DTD:- <!DOCTYPEmathSYSTEM"http://www.w3.org/Math/DTD/mathml1/mathml.dtd">
复制代码 MathML2.0-DTD:- <!DOCTYPEmathPUBLIC"-//W3C//DTDMathML2.0//EN""http://www.w3.org/TR/MathML2/dtd/mathml2.dtd">
复制代码 XHTML+MathML+SVG-DTD:- <!DOCTYPEhtmlPUBLIC"-//W3C//DTDHTML4.01//EN""http://www.w3.org/TR/html4/strict.dtd"><!DOCTYPEhtmlPUBLIC"-//W3C//DTDHTML4.01Transitional//EN""http://www.w3.org/TR/html4/loose.dtd"><!DOCTYPEhtmlPUBLIC"-//W3C//DTDHTML4.01Frameset//EN""http://www.w3.org/TR/html4/frameset.dtd">0
复制代码 SVG1.0-DTD:- <!DOCTYPEhtmlPUBLIC"-//W3C//DTDHTML4.01//EN""http://www.w3.org/TR/html4/strict.dtd"><!DOCTYPEhtmlPUBLIC"-//W3C//DTDHTML4.01Transitional//EN""http://www.w3.org/TR/html4/loose.dtd"><!DOCTYPEhtmlPUBLIC"-//W3C//DTDHTML4.01Frameset//EN""http://www.w3.org/TR/html4/frameset.dtd">1
复制代码 SVG1.1Full-DTD:- <!DOCTYPEhtmlPUBLIC"-//W3C//DTDHTML4.01//EN""http://www.w3.org/TR/html4/strict.dtd"><!DOCTYPEhtmlPUBLIC"-//W3C//DTDHTML4.01Transitional//EN""http://www.w3.org/TR/html4/loose.dtd"><!DOCTYPEhtmlPUBLIC"-//W3C//DTDHTML4.01Frameset//EN""http://www.w3.org/TR/html4/frameset.dtd">2
复制代码 SVG1.1Basic-DTD:- <!DOCTYPEhtmlPUBLIC"-//W3C//DTDHTML4.01//EN""http://www.w3.org/TR/html4/strict.dtd"><!DOCTYPEhtmlPUBLIC"-//W3C//DTDHTML4.01Transitional//EN""http://www.w3.org/TR/html4/loose.dtd"><!DOCTYPEhtmlPUBLIC"-//W3C//DTDHTML4.01Frameset//EN""http://www.w3.org/TR/html4/frameset.dtd">3
复制代码 SVG1.1Tiny-DTD:- <!DOCTYPEhtmlPUBLIC"-//W3C//DTDHTML4.01//EN""http://www.w3.org/TR/html4/strict.dtd"><!DOCTYPEhtmlPUBLIC"-//W3C//DTDHTML4.01Transitional//EN""http://www.w3.org/TR/html4/loose.dtd"><!DOCTYPEhtmlPUBLIC"-//W3C//DTDHTML4.01Frameset//EN""http://www.w3.org/TR/html4/frameset.dtd">4
复制代码 XHTML+MathML+SVGProfile(XHTMLasthehostlanguage)-DTD:- <!DOCTYPEhtmlPUBLIC"-//W3C//DTDHTML4.01//EN""http://www.w3.org/TR/html4/strict.dtd"><!DOCTYPEhtmlPUBLIC"-//W3C//DTDHTML4.01Transitional//EN""http://www.w3.org/TR/html4/loose.dtd"><!DOCTYPEhtmlPUBLIC"-//W3C//DTDHTML4.01Frameset//EN""http://www.w3.org/TR/html4/frameset.dtd">0
复制代码 XHTML+MathML+SVGProfile(UsingSVGasthehost)-DTD:- <!DOCTYPEhtmlPUBLIC"-//W3C//DTDHTML4.01//EN""http://www.w3.org/TR/html4/strict.dtd"><!DOCTYPEhtmlPUBLIC"-//W3C//DTDHTML4.01Transitional//EN""http://www.w3.org/TR/html4/loose.dtd"><!DOCTYPEhtmlPUBLIC"-//W3C//DTDHTML4.01Frameset//EN""http://www.w3.org/TR/html4/frameset.dtd">6
复制代码 ListofDTDsfortheCSSvalidator.
AuthoringtoolsMUSTNOTusethefollowinglist.
HTML4.0http://www.w3.org/TR/1998/REC-html40-19980424/strict.dtd
http://www.w3.org/TR/1998/REC-html40-19980424/loose.dtd
http://www.w3.org/TR/1998/REC-html40-19980424/frameset.dtdHTML4.01http://www.w3.org/TR/1999/REC-html401-19991224/strict.dtd
http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd
http://www.w3.org/TR/1999/REC-html401-19991224/frameset.dtdXHTML1.0http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-strict.dtd
http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-transitional.dtd
http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-frameset.dtdXHTML1.1http://www.w3.org/TR/2001/REC-xhtml11-20010531/DTD/xhtml11.dtd</p>
这不是理想状况。我们必须尽可能把精力放在改善这项规范,把耗费在派系相争的精力降到最低。 |
|