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 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Mar 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Errors found while checking this document as XHTML 1.0 Strict!

    Hello
    I have by ws.org my site to the check
    And I hit this error
    Please help me
    And that my English is not good to apologize
    -------------------------------------------------
    required attribute X not specified
    Line 254, column 107: required attribute "alt" not specified

    …z.com/wp/wp-content/themes/blogskin/images/top.jpg" width="200" height="120" />
    -------------------------------------------------
    document type does not allow element X here
    Line 77, column 64: document type does not allow element "a" here

    …ript">pausecontent2[0]='<a href=http://www.goshibaz.com/tower-bloxx/>Tower Blo…
    -------------------------------------------------
    ID X already defined
    Line 753, column 16: ID "android" already defined

    </div><div id="android">
    -------------------------------------------------
    there is no attribute X
    Line 49, column 12: there is no attribute "align"

    <div align="center"><div style="width:1003px">
    -------------------------------------------------
    document type does not allow element X here; missing one of Y start-tag
    Line 60, column 61: document type does not allow element "input" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag

    <input type="text" value="" name="s" id="s" class="txtsch" />
    -------------------------------------------------
    an attribute value specification must be an attribute value literal unless SHORTTAG YES is specified
    Line 50, column 12: an attribute value specification must be an attribute value literal unless SHORTTAG YES is specified

    <div class=main><div class=top>
    -------------------------------------------------
    end tag for element X which is not open
    Line 77, column 109: end tag for element "a" which is not open

    …ent2[0]='<a href=http://www.goshibaz.com/tower-bloxx/>Tower Bloxx</a>'</script>
    -------------------------------------------------
    NET-enabling start-tag not immediately followed by null end-tag
    Line 77, column 64: NET-enabling start-tag not immediately followed by null end-tag

    …ript">pausecontent2[0]='<a href=http://www.goshibaz.com/tower-bloxx/>Tower Blo…
    -------------------------------------------------

    Errors found while checking this document as XHTML 1.0 Strict! 187 Errors

    tnx

  • #2
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,994
    Thanks
    4
    Thanked 2,662 Times in 2,631 Posts
    Not a thing to do with PHP. Moving to. . . XML forum I guess.
    In the XHTML 1.0 strict DTD:
    1. <img> requires an alt tag
    2. Javascript should be handled as CDATA. Attributes need to be quoted
    3. ID can only be used once
    4. There is no alignment attribute. Use style for text-alignment
    5. I'm not going through the HTML. <input> is required to be wrapped in a form.
    6. Attributes cannot be without quotations.
    7. JS. Wrap it as CDATA. Make sure attributes are quoted.
    8. ''

  • #3
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,642
    Thanks
    0
    Thanked 649 Times in 639 Posts
    Quote Originally Posted by Fou-Lu View Post
    I'm not going through the HTML. <input> is required to be wrapped in a form.
    In fact input tags must not only be wrapped in a form but they must also not be direct children of the form. A block tag is required in between <div> or <fieldset> are the ones that usually make the most sense.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.


  •  

    Posting Permissions

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