Results 1 to 3 of 3

Thread: <!doctype> vs <!DOCTYPE>

  1. #1
    Join Date
    Aug 2007
    Location
    North Carolina
    Posts
    11
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default <!doctype> vs <!DOCTYPE>

    I'm trying to switch to xhtml 1.0 using Frontpage 2002 as an editor. When I type <!DOCTYPE ....etc> Frontpage changes it back to <!doctype...etc> . Does it make any difference when the browsers read the page? Are they the same?

    Thanks

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Don't go to XHTML just yet -- IE still doesn't support it. Stick with HTML 4.01 Strict.

    SGML (and thus HTML) is case insensitive: it doesn't care if you write <!DOCTYPE>, <!doctype>, or <!DoCtYpE>. XML, however (and thus XHTML) is case sensitive, and only <!DOCTYPE> is acceptable, I believe.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    To expand a bit--
    With html (not xml) cases don't matter, but there are standards for clarity.
    UPPERCASE for machine written code and lowercase for human-written code.
    It's not something that you must stick to, but perhaps helpful in some cases.
    Not a bad idea to know what changes you made yourself (ie, what's lowercase code).
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

Bookmarks

Posting Permissions

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