以下为主要的不同之处,例子在后续文章中介绍:
- 新的解析顺序:不再基于SGML
- 新的元素:section, video, progress, nav, meter, time, aside, canvas, command, datalist, details, embed, figcaption, figure, footer, header, hgroup, keygen, mark, output, rp, rt, ruby, source, summary, wbr
- input元素的新属性:日期和时间,email, url
- 新的通用属性:ping(用于a和area), charset(用于meta), async(用于script)
- 全局属性:id, tabindex, repeat
- 移除元素:acronym, applet, basefont, big, center, dir, font, frame, frameset, isindex, noframes, s, strike, tt, u
本文介绍了HTML5相较于前代的重大更新,包括新的解析顺序、新增的元素如<section>和<video>等,input元素的新属性如日期和时间输入,以及新的通用属性如ping。同时,还列举了一些被移除的过时元素。
26万+

被折叠的 条评论
为什么被折叠?



