Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Trying to validate: XHTML 1.0 Strict

  1. #1
    Join Date
    May 2007
    Location
    England, UK
    Posts
    235
    Thanks
    3
    Thanked 6 Times in 6 Posts

    Post Trying to validate: XHTML 1.0 Strict

    I'm trying to validate my document, it is a XHTML 1.0 Strict.

    I have used some flash but it won't validate because I can't use <object> within <noscript>

    Is there an alternative that will validate?

    HTML Code:
    <script type="text/javascript">
    AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','807','height','176','src','content/images/header','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','content/images/header' ); //end AC code
    </script>
    HTML Code:
    <noscript>
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" type="application/x-shockwave-flash" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="807" height="176" data="content/images/header.swf">
    <param name="movie" value="content/images/header.swf" />
    <param name="quality" value="high" />
    </object>
    </noscript>

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

    Default

    You can wrap the <object> in a <div> or other block-level element, I believe. Read the Flash Satay article for a guide on how to do it properly.

    You do realise that by using XHTML you're dropping support for IE, right?
    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
    May 2007
    Location
    England, UK
    Posts
    235
    Thanks
    3
    Thanked 6 Times in 6 Posts

    Default

    Quote Originally Posted by Twey View Post
    You do realise that by using XHTML you're dropping support for IE, right?
    I mainly use IE to test my site and I haven't encountered any problems yet.

    I've created sites using XHTML 1.0 Transitional before which have worked in all browsers. This is the first site I am creating that uses Strict.

    What issues do you think I'll have using this DOCTYPE?

  4. #4
    Join Date
    Sep 2005
    Location
    India
    Posts
    1,627
    Thanks
    6
    Thanked 107 Times in 107 Posts

    Default

    IE doesn't support native XHTML. Please have a look at this article

    It is better if you use Firefox for the testing purpose.

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

    Default

    I mainly use IE to test my site and I haven't encountered any problems yet.

    I've created sites using XHTML 1.0 Transitional before which have worked in all browsers.
    This means you've sent it as text/html. This isn't XHTML, it's badly-formed HTML. Just as when you send a PNG with a GIF MIME-type, the browser will attempt to parse it as HTML, not XHTML. The only difference is that in the case of XHTML it's similar enough to HTML that the browser can error-correct it into HTML and get some sense out of it, thus displaying your page "correctly" in most cases. However, don't be fooled: it's not XHTML, and none of the benefits of using XHTML (or, in fact, the benefits of using valid HTML) apply.
    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!

  6. #6
    Join Date
    May 2007
    Location
    England, UK
    Posts
    235
    Thanks
    3
    Thanked 6 Times in 6 Posts

    Default

    The code I have used is:

    HTML 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">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Untitled Document</title>
    </head>
    
    <body>
    </body>
    </html>
    This was already created for me when making a new page in Dreamweaver v8.

    Does this code not make it XHTML then?

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

    Default

    Does this code not make it XHTML then?
    Not alone, no. It's not XHTML unless it's served as application/xhtml+xml, no matter what the DOCTYPE says.
    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!

  8. #8
    Join Date
    May 2007
    Location
    England, UK
    Posts
    235
    Thanks
    3
    Thanked 6 Times in 6 Posts

    Default

    Ok thanks.

    Do you suggest that I go back to HTML 4.01 Strict then?

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

    Default

    Yes, I do.
    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!

  10. #10
    Join Date
    May 2007
    Location
    England, UK
    Posts
    235
    Thanks
    3
    Thanked 6 Times in 6 Posts

    Default

    I still don't fully understand why it's not XHTML?

    Even though when I submit it for validation I get this message?


    I used http://validator.w3.org/ to validate

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
  •