Page is a not externally linkable
- Code, Content, and Presentation
-- CSS
---- HTML5 and specifications


Fotiman - 4:30 pm on Feb 6, 2013 (gmt 0)



largest website did not transform XHTML to HTML5

They may have their own reasons, for example they may be using a Content Management System (CMS) like Wordpress, Drupal, etc., that uses XHTML and it's not worth the work to modify their templates (if it's not broke, don't fix it). Or perhaps they're using a facebook extension that uses the Open Graph requires XHTML, and switching would cause those to stop working or would require extra work to convert.

1. Is it the best way to use:

Which DOCTYPE you use depends on your needs. If you're going to use XHTML 1.0, you probably don't want to be using the Transitional doctype. Transitional is intended for legacy sites that are still using deprecated HTML attributes that have been replaced with CSS alternatives, to allow them some time to make the changes to use CSS for presentation. It's not intended for new sites.

2.
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
vs.
<meta charset="utf-8">
There's a good explaination here:
[diveintohtml5.info...]
All browsers support the shorter version, so if you're using HTML5 use that.

3. Use of
modernizr.com...

Is there a question here? If you're doing HTML5 (and even if you're not), Modernizr is great and very useful.


4. Media Queries for Responsive Design suggested by

Responsive Design is starting to get more traction now. It's not specific to HTML5 though.


Thread source:: http://www.webmasterworld.com/css/4542905.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com