Last active
August 29, 2015 14:02
-
-
Save jikeytang/5c9c3d6d0e566e413062 to your computer and use it in GitHub Desktop.
[ Html ] - 20140607-题目1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
以下四种doctype有什么区别,分别对页面有什么影响? | |
<!DOCTYPE html> | |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" | |
"http://www.w3.org/TR/html4/loose.dtd"> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " | |
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"> | |
PS: | |
1. 回复时注意加上下面这句话,才会有语法高亮或格式缩进。 | |
```html | |
// you code | |
``` | |
2. 也可以粘贴jsfiddle地址,比如: | |
http://jsfiddle.net/jikeytang/Rmt8M/ | |
评论支持markdown语法。 | |
[http://jsfiddle.net/jikeytang/Rmt8M/](http://jsfiddle.net/jikeytang/Rmt8M/) |
ljkfgh2008
commented
Jun 9, 2014
1.
HTML5使用,只有一种,不解释。
2.
超文本过渡文档类型
可包含 W3C 所期望移入样式表的呈现属性和元素。如果用户使用了不支持层叠样式表(CSS)的浏览器以至于您不得不使用 HTML 的呈现特性时,请使用此文档类型
3.
可扩展超文本标记语言过渡文档类型
可包含 W3C 所期望移入样式表的呈现属性和元素。如果您的读者使用了不支持层叠样式表(CSS)的浏览器以至于您不得不使用 XHTML 的呈现特性时,请使用此文档类型
4.
可扩展超文本标记语言框架集文档类型
当您希望使用框架时,请使用此文档类型
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment