Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 8 of 8
  1. #1
    Senior Coder effpeetee's Avatar
    Join Date
    Feb 2007
    Location
    Clapham Junction - London SW
    Posts
    4,885
    Thanks
    228
    Thanked 204 Times in 203 Posts

    Exclamation DOCTYPE dilemmas.

    When I start an HTML page, Iusually have no problem with the isolated DOCTYPE for example:
    <DOCTYPE HTML>
    It is the <HTML hmins= > stuff that throws me. Googling shows so many (to me) confusing views, that I thought it best to come tothe real experts and ask for guidance.

    What it the correct way to decide how to code from the top to the <BODY> tag.

    Doctype
    <html hmins...........................>
    charset =
    etc.
    etc.

    Frank X
    (Still an unknown quantity)
    Last edited by effpeetee; 04-22-2011 at 12:29 PM.
    * Sources (updated: 21.11.2012.
    Using Windows 8 Professional. 64bit with HP Photosmart 5510 printer Very useful site here.

  • #2
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    This really doesn't belong in computer issues. I am moving this to the HTML forum.
    OracleGuy

  • #3
    Senior Coder effpeetee's Avatar
    Join Date
    Feb 2007
    Location
    Clapham Junction - London SW
    Posts
    4,885
    Thanks
    228
    Thanked 204 Times in 203 Posts
    I am still looking for a definitive answer to this one. Googling is most unproductive.

    Forlorn effpeetee.



    perseverance pays - Dunnit?
    * Sources (updated: 21.11.2012.
    Using Windows 8 Professional. 64bit with HP Photosmart 5510 printer Very useful site here.

  • #4
    The Apostate Apostropartheid's Avatar
    Join Date
    Oct 2007
    Posts
    3,215
    Thanks
    16
    Thanked 265 Times in 263 Posts
    Quote Originally Posted by effpeetee View Post
    When I start an HTML page, Iusually have no problem with the isolated DOCTYPE for example:
    <DOCTYPE HTML>
    It is the <HTML hmins= > stuff that throws me. Googling shows so many (to me) confusing views, that I thought it best to come tothe real experts and ask for guidance.

    What it the correct way to decide how to code from the top to the <BODY> tag.

    Doctype
    <html hmins...........................>
    charset =
    etc.
    etc.

    Frank X
    (Still an unknown quantity)
    hmins isn't an attribute (or anything, really).

  • #5
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,852
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    Seems like Frank is talking about xmlns attribute applied on the <html> tag, when using an XHTML DOCTYPE.

    The following links may help.
    http://www.w3.org/TR/xhtml1/normative.html
    http://en.wikipedia.org/wiki/XML_namespace
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #6
    Senior Coder effpeetee's Avatar
    Join Date
    Feb 2007
    Location
    Clapham Junction - London SW
    Posts
    4,885
    Thanks
    228
    Thanked 204 Times in 203 Posts
    Thank you both. What I really want to do is just to use and understand the HTML5 Doctype header. This to include charset and and language,

    I usually manage to fidget something together, but it is just a case of 'Suck it and see.' Not a very satisfactory process.

    Frank
    * Sources (updated: 21.11.2012.
    Using Windows 8 Professional. 64bit with HP Photosmart 5510 printer Very useful site here.

  • #7
    The Apostate Apostropartheid's Avatar
    Join Date
    Oct 2007
    Posts
    3,215
    Thanks
    16
    Thanked 265 Times in 263 Posts
    Quote Originally Posted by effpeetee View Post
    Thank you both. What I really want to do is just to use and understand the HTML5 Doctype header. This to include charset and and language,

    I usually manage to fidget something together, but it is just a case of 'Suck it and see.' Not a very satisfactory process.

    Frank
    Typical HTML 4.01 document:

    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
        "http://www.w3.org/TR/html4/strict.dtd">
    <html lang="en">
      <head>
        <title></title>
        <meta http-equiv="content-type" content="text/html; charset=utf-8">
      </head>
      <body>
        ...
      </body>
    </html>
    XHTML 1.0

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
      <head>
        <title></title>
        <meta http-equiv="content-type" content="application/xhtml+xml; charset=utf-8" />
      </head>
      <body>
        ...
      </body>
    </html>
    HTML 5 (HTML flavour)

    Code:
    <!DOCTYPE html>
    <html>
      <head>
        <title></title>
        <meta charset="utf-8">
      </head>
      <body>
        ...
      </body>
    </html>
    Does this make more sense?

  • #8
    Senior Coder effpeetee's Avatar
    Join Date
    Feb 2007
    Location
    Clapham Junction - London SW
    Posts
    4,885
    Thanks
    228
    Thanked 204 Times in 203 Posts
    Thanks, I have printed it out for future use.

    Frank
    * Sources (updated: 21.11.2012.
    Using Windows 8 Professional. 64bit with HP Photosmart 5510 printer Very useful site here.


  •  

    Posting Permissions

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