If I set the doctype to the HTML 5 <!DOCTYPE html>
, this will set browsers into standards mode.
Does that mean that most modern browsers will behave as if they are in HTML 4.01 Transitional mode?
If I set the doctype to the HTML 5 <!DOCTYPE html>
, this will set browsers into standards mode.
Does that mean that most modern browsers will behave as if they are in HTML 4.01 Transitional mode?
Browser's don't actually have a "HTML 4.01 Transitional mode". They have a "standards" mode and historic modes, "quirks" and "almost standards" for most browsers, and a variety of earlier IE behaviours for IE.
There isn't a direct mapping from a "HTML 4.01 Transitional" doctype to a mode, but for most modern browsers, it maps to "almost standards" mode in the presence of the SYSTEM identifier and "quirks" mode in its absence.
For more details, see http://hsivonen.iki.fi/doctype/ and http://dev.w3.org/html5/spec/tree-construction.html#the-initial-insertion-mode
It means the browser will be in standards mode as opposed to quirks, which is the only real distinction to be made unless you're concerned about a specific kind of validation for some reason. Strict was only interesting in the context of making an html document adhere to xml standards, which HTML5 doesn't follow.
No these are not similar. Though HTML 5 Doctype is still a draft. But if you will validate your code on HTML 5 compliance check, it will not support the deprecated html 4 attributes or tags. Also, the new HTML 5 tags will only be supported in HTML 5 doctype when you are validating your code. You can validate it at this link: http://validator.w3.org/