在 HTML 脚本中, 一般在首行进行 Document Type Declaration, 即文档类型声明, 该语句声明了文档的 HTML 版本.
HTML5 之前的 HTML 版本基于 SGML(Standard Generalized Markup Language), 因此DOCTYPE需要声明引用 DTD (Document Type Definition), 而在 HTML5 中, 只需要声明 html 即可, 即 <!DOCTYPE html>
<!DOCTYPE html>
查看详情
Code Guide is a project for documenting standards for developing flexible, durable, and sustainable HTML and CSS. It comes from years of experience writing code on projects of all sizes. It's not the end-all be-all, but it's a start.
Comparing three ways of mobile SEO.
在HTML中用注释指定特定浏览器执行某段代码的方法:
<!--[if IE 9]> .... some HTML here .... <![endif]-->
HTML a Target Attribute
HTML a 标签的 target 属性用于指明链接打开的页面,默认值是 _self,即在链接所在 frame 打开,另外的值有_blank, _parent 和 _top,_blank 指明链接在新窗口中打开,而 _parent/_top 指明在父级/顶级 frame 中打开,只在 frame 布局中使用。