Page 2 of 2 First 12
  • Jump to page:
    #16
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2013
    Posts
    13
    Rep Power
    0

    Smile


    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.
  2. #17
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2012
    Location
    Haifa, Israel
    Posts
    17
    Rep Power
    0
    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 10:09 PM. Reason: replaced the link to w3schools
  4. #18
  5. CSS & JS/DOM Adept
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jul 2004
    Location
    USA (verifiably)
    Posts
    20,132
    Rep Power
    4304
    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 04:32 AM. Reason: typo correction
    Spreading knowledge, one newbie at a time.

    Check out my blog. | Learn CSS. | PHP includes | X/HTML Validator | CSS validator | Common CSS Mistakes | Common JS Mistakes

    Remember people spend most of their time on other people's sites (so don't violate web design conventions).
Page 2 of 2 First 12
  • Jump to page:

IMN logo majestic logo threadwatch logo seochat tools logo