SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: Xhtml....

Hybrid View

  1. #1
    SitePoint Enthusiast
    Join Date
    Jun 2001
    Posts
    28
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Xhtml....

    When you make a page written in XHTML, is it's extension .xhtml or still .html?

  2. #2
    Captain Internet neil's Avatar
    Join Date
    Jun 2001
    Location
    n.ireland
    Posts
    333
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    .html should work fine.

    Well, usually .html, could be .xml in normal setups too. You can use .xhtml if you set up the server for that.

    There's no registered mime type for xhtml yet, it's served as text/html or text/xml at the moment. Going by apache's default settings for mime types of the extensions.

  3. #3
    SitePoint Wizard silver trophy TheOriginalH's Avatar
    Join Date
    Aug 2000
    Location
    Thailand
    Posts
    4,810
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I believe it is the "doctype" definition which carries importance, not the extension.

    H


    (so basically, use .htm or .html )
    ~The Artist Latterly Known as Crazy Hamster~
    922ee590a26bd62eb9b33cf2877a00df
    Currently delving into Django, GIT & CentOS

  4. #4
    The Hiding One lynlimz's Avatar
    Join Date
    Jul 2000
    Location
    Singapore
    Posts
    2,103
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you could have any extension. .php too if you're using seeverside scripts.

    just make sure your code is validated for xhtml 1.0 and it carries the xhtml doctype.
    "Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world."
    -- Albert Einstein


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
  •