-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[html] 第33天 html和html5有什么区别呢? #118
Comments
1.HTML5简化了很多细微的语法,例如doctype的声明,只需要写<!doctype html>就行了。HTML5与HTML5,XHTML1兼容,但是与SGML不兼容。 |
html4一下是基于SGML的,H5不是,因为HTML要写很长的DTD规范描述,H5不用写 |
HTML5 新增了许多标签(结构标签,表单标签,媒体标签,其他功能标签) |
html一般指的是H5之前的版本
|
文档声明区别HTML文档的类型声明为: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
//或
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> HTML5文档的类型声明为: <!DOCTYPE html> 结构语义区别
相对于 绘图区别
音频的视频的支持
|
1.HTML5简化了很多细微的语法,例如doctype的声明,只需要写<!doctype html>就行了。HTML5与HTML5,XHTML1兼容,但是与SGML不兼容。 |
html5在声明方面较于html更简便,html5的语义化更标准 |
第33天 html和html5有什么区别呢?
The text was updated successfully, but these errors were encountered: