SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    One website at a time mmj's Avatar
    Join Date
    Feb 2001
    Location
    Melbourne Australia
    Posts
    6,282
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    XHTML - An Introduction

    These comments are in regards to the SitePoint.com article 'XHTML - An Introduction'.

    That's odd. I've found that if I place
    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    at the start of my XHTML 1.0 page, it validates, but internet explorer doesn't display it properly.

    If I remove this line, and just have the DTD as the first line, it displays as proper XHTML in internet explorer.

    Does anyone else put the ?XML tag on the start? It's not required, according to W3C's validator. You just need a DTD.
    [mmj] My magic jigsaw
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    The Bit Depth Blog Twitter Contact me
    Neon Javascript Framework Jokes Android stuff

  2. #2
    Your Lord and Master, Foamy gold trophy Hierophant's Avatar
    Join Date
    Aug 1999
    Location
    Lancaster, Ca. USA
    Posts
    12,305
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    What does your DOCTYPE specify?

    If should be something like:
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    Wayne Luke
    ------------


  3. #3
    SitePoint Wizard iTec's Avatar
    Join Date
    May 2001
    Location
    Sydney, Australia
    Posts
    2,243
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: XHTML - An Introduction

    Originally posted by mmj
    That's odd. I've found that if I place
    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    at the start of my XHTML 1.0 page, it validates, but internet explorer doesn't display it properly.
    It is a bug in IE, and quite a well knowen one at that.
    for this reason, 99% of standard compliant websites currently leave it out.

    <edit> um why is this in the php forum?
    Last edited by iTec; Oct 1, 2002 at 05:34.

  4. #4
    SitePoint Wizard silver trophy Jeremy W.'s Avatar
    Join Date
    Jun 2001
    Location
    Toronto, Canada
    Posts
    9,123
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    All comments to articles currently go in the PHP forum. No worries, thanks for the "report"
    SVP Marketing, SoCast SRM
    Personal blog: Strategerize
    Twitter: @jeremywright

  5. #5
    One website at a time mmj's Avatar
    Join Date
    Feb 2001
    Location
    Melbourne Australia
    Posts
    6,282
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Thanks itec

    I'm just getting into the world of standards-compliance.

    I've found that if I add a <meta http-equiv... you can set the charset and it validates as XHTML.

    I am so happy! I have made an XHTML strict complaint version of my site's front page!

    COMING SOON: look ma no tables


    Edit: I didn't move this to the XHTML forum because I didn't want to mess up the article-comments thing.
    Last edited by mmj; Oct 1, 2002 at 09:54.
    [mmj] My magic jigsaw
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    The Bit Depth Blog Twitter Contact me
    Neon Javascript Framework Jokes Android stuff


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
  •