1. HTML5 新的 DocType 和 Charset 是什么?
HTML5 现在已经不是 SGML 的子集,DocType 简化为:
HTML 5 指定 UTF-8 编码的方式如下:
2. 如何在 HTML5 页面中嵌入音频?
HTML 5 包含嵌入音频文件的标准方式,支持的格式包括 MP3、Wav 和 Ogg:
Your browser does'nt support audio embedding feature.
3. 如何在 HTML5 页面中嵌入视频?
和音频一样,HTML5 定义了嵌入视频的标准方法,支持的格式包括:MP4、WebM 和 Ogg:
Your browser does'nt support video embedding feature.
4.除了音频和视频,HTML5 还支持其他什么新的媒体元素?
HTML 5 对媒体支持很强,除了 audio 和 video 外,还提供:
作为外部应用的容器
定义媒体的文本跟踪
对多种媒体源的支持很有帮助
5.What is the usage of canvas Element in HTML 5?
is an element in HTML5 which we can use to draw graphics with the help of scripting (which is most probably JavaScript).
This element behaves like a container for graphics and rest of things