Saturday, July 30, 2011

::::|| VU ||:::: Document Type Declarations in HTML5 - [eTechy101.com]

A new article has been posted on eTechy101.com.
The post title is 'Document Type Declarations in HTML5'. Below is a preview of
the post.

Document type declaration is needed at the top of each web page in HTML5.
Without specifying a 'doctype', your HTML just isn't valid HTML and most
browsers viewing them will switch to 'quirks mode', which means that they
won't understand the document and hence perform any random operation. The
document declaration for HTML5 looks like this:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Strict//EN" "http://www.google.com/TR/xhtml1/DTD/xhtml1-strict.dtd">

Two most important elements to be mentioned in document type declaration are
language and content types. You should identify the primary language of a
document either through an HTTP header or with the xml:lang attribute inside
the opening html tag. Although this is not necessary to produce a valid HMTL
document, it is an accessibility consideration. The value is an abbreviation,
such as 'en' (English), 'fr' (French), 'de' (German) or 'mg' (Malagasy).

You may view the full post at
http://www.etechy101.com/programming/document-type-declarations-in-html5.html

You received this e-mail because you asked to be notified when new updates are
posted.

Thanks for being a valued member of eTechy101.com

Best regards,

eTechy
http://www.etechy101.com

--
For study materials, past papers and assignments,
Join VU School at www.VusCool.com
and www.VUGuys.com
CoooL Virtual University Students Google Group.
To post to this group, send email to coool_vu_students@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/coool_vu_students?hl=en

No comments:

Post a Comment