Online Book Reader

Home Category

HTML, XHTML and CSS All-In-One for Dummies - Andy Harris [62]

By Root 1503 0
latest versions of Chrome, Safari, and Opera all have support for key features of HTML 5, but Microsoft Internet Explorer (at least up to version 8) does not incorporate most features of HTML 5.


Validating HTML 5

Because the final specification for HTML 5 is still under review, validating HTML 5 code is not an exact science. The W3C validator has provisional support for HTML 5, but HTML 5 validation isn’t built into Tidy or other validation tools, yet.

Still, it makes sense to validate your HTML 5 code as much as you can because validation will prevent problems down the road.


Semantic Elements

One of the key features of HTML is the support for new semantic features. HTML is supposed to be about describing the meaning of elements, yet Web pages frequently have elements without HTML tags. Look at the following example of HTML 5 code:

semanticTags.html

Semantic Tags Demo

Section

Article 1

This is an article. It’s just a logical part of a page.

Article 1

This is an article. It’s just a logical part of a page.

This code validates perfectly as HTML 5, but it has several tags that were not allowed in XHTML or previous versions of HTML:

®Online Book Reader