html5 support,HTML5

HTML5

HTML5 is the latest and greatest standard for HTML. It incorporatessome features of HTML4.01 and some of XML, but also brings many newexciting capabilities to the web including a graphics canvas, audio, andvideo capabilities.

HTML5 tightens the specification for HTML so there are fewer problemswith browsers interpreting things differently. It provides manycapabilities that previously required plugins and add-ons so that advancedcapabilities will be available across a wide array of Internetappliances.

For someone who likes to hand-code things, as I do, it’s also easierthan previous versions of HTML, although there is a lot more to learn,only because it is so capable.

HTML5 is still an evolving standard but already most major browsersimplement a large portion of it, enough so that it is currently possibleto include video, auto, and graphical content without the need forplugins. It is also easy to write code that is HTML5 compliant but alsobackwards compatible with older browsers.

Hello World!

Hello World!

Hello World!

Notice that the DOCTYPE for HTML5 is simply “HTML”. Whatcould be simpler than that? The presence of this doctype putsbrowsers in standards mode so there is at least a chance they’ll dothe right thing.

Some sites don’t consider the language declaration to be important butI prefer not to make the browser guess and guarantee that the correctcharacter set is used to render the document.

Just as with previous versions of HTML, you have and theclosing tags surrounding the header and body.

The header section is enclosed in and tags and the body in

and tags, just as withprevious versions.

HTML5 can be coded in either HTML format or XHTML format. If you wantto type
or
, either will work. Browsers will parseboth HTML5 and XHTML5 identically.

Many deprecated tags, such as

and , are nolonger supported because their functions have been replaced by stylesheets. Now if only Browser vendors would make all style sheet code workproperly.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值