HTML5 is not something that is supported or isn't supported.
It's not even a complete specification yet. Browsers may or may not support some of HTML5 features. Legacy browsers may have no support at all for newer features introduced with HTML5. As long as you don't use any of the new features introducted in HTML5, your document will be compatible with legacy browsers too.
If you plan to use some of the new features not supported by legacy browsers, and at the same time making them compatible with your site, you need to choose a different method to display your content.
If you want to make HTML5 compatible with most browsers, I suggest you to use some good tools, like Boilerplate and Modernizr.
October 6th, 2013, 04:07 PM
Hall of Famer and others:
To your first question: what exactly is HTML 4.01 transitional?
The doctype states what type of HTML is to be expected in the page, so it states against which specification your markup will be validated.
In HTML 4.01, the <!DOCTYPE> declaration refers to a DTD, because HTML 4.01 was based on SGML.
In short, in HTML 4.01, there are three different <!DOCTYPE> declarations.
· HTML 4.01 Strict: contains all HTML elements and attributes, but does NOT INCLUDE presentational or deprecated elements (such as font). Framesets are not allowed.
· HTML 4.01 Transitional: contains all HTML elements and attributes, but DOES include presentational or deprecated elements. Here too, framesets are NOT permitted.
· HTML 4.01 Frameset: the same as Transitional, but it DOES allow framesets.
HTML 5, by contrast, is not based on SGML, and therefore does not require a reference to a DTD at all. There is only one declaration type. It looks like this: <!DOCTYPE html> -- and, as in previous versions of HTML, it must be the very first thing in your HTML document, before the <html> tag.
To your second question: If I use HTML4.01 transitional type document, will it support new HTML5 attributes?
The difference between 4.01 and 5 isn't significant. Only a few of the old items were removed in the spec for 5 -- notably, frames and framesets, which feature in your case, as you wrote. So, no problem there.
This resource lists the elements that were removed and added: http://www.w3.org/TR/html5-diff/#language
Table elements are still supported, so you're OK there too, especially if you are just looking to add a few limited features without a lot of recoding.
Last edited by Kravvitz; October 6th, 2013 at 11:09 PM.
Reason: replaced the link to w3schools
January 20th, 2014, 07:33 AM
Now why would you want to use a frameset? They create way more problems than they solve.
As for removed table features those were already deprecated in HTML 4.01 Strict. You should use CSS to style tables, when a table is the appropriate choice for marking up some content, of course.
Last edited by Kravvitz; March 4th, 2014 at 05:32 AM.
Reason: typo correction