www.webdeveloper.com
Results 1 to 3 of 3

Thread: Doctype Question

  1. #1
    Join Date
    Aug 2012
    Posts
    13

    Doctype Question

    I was reading about the different doctypes (http://www.webmasterworld.com/html/3061635.htm)

    Under the strict doctype it says "HTML 4.01 Strict does not include older presentational HTML such as font elements: they will still work, but the page won't validate."

    Does this mean <p><font size="3" color="red">This is some text!</font></p> is invalid, but all font code in css validates?

  2. #2
    Join Date
    Mar 2011
    Posts
    1,135
    The answer to your question is 'yes'. Keep in mind that valid HTML and valid CSS are separate issues.
    Rick Trethewey
    Rainbo Design

  3. #3
    Join Date
    Aug 2012
    Posts
    13
    Webmasterworld also shows under HTML 4.01 Transitional "You want to open links in new windows"

    I take it that's the default if you haven't specified target? What's the default for strict?

    For strict it shows:
    You are catering for modern browsers (including IE6)
    You want your page to work in alternative devices (mobile phones, consoles)
    You want to improve your content-to-code ratio

    How is the strict doctype catering towards modern browsers and mobile devices? And how does it improve your content to code ratio? Simply because all presentation elements are in css and not html? You can do that with Transitional.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles