2 errors on validation, please help

Discussion in 'HTML & Website Design' started by mrcountry, Nov 5, 2011.

  1. #1
    Validation Output: 2 Errors
    Line 540, Column 27: document type does not allow element "div" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag <div id="HCB_comment_box"><a href="http://www.htmlcommentbox.com">HTML Comment…
    ✉


    The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

    One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").

    Line 541, Column 108: document type does not allow element "link" here…"text/css" href="http://www.htmlcommentbox.com/static/skins/simple/skin.css" />
    ✉


    The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).

    One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).

    ( Below is the code )

    <h3 align="left">What's Up?</h3>

    <p><!-- begin htmlcommentbox.com -->
    <div id="HCB_comment_box"><a href="http://www.htmlcommentbox.com">HTML Comment Box</a> is loading comments...</div>
    <link rel="stylesheet" type="text/css" href="http://www.htmlcommentbox.com/static/skins/simple/skin.css" />
    <script type="text/javascript" language="javascript" id="hcb"> /*<!--*/ if(!window.hcb_user){hcb_user={ };} (function(){s=document.createElement("script");s.setAttribute("type","text/javascript");s.setAttribute("src", "http://www.htmlcommentbox.com/jread?page="+escape((window.hcb_user && hcb_user.PAGE)||(""+window.location)).replace("+","%2B")+"&mod=%241%24wq1rdBcg%24B/LBxi.ULncYXG/aJ8poG."+"&opts=31&num=10");if (typeof s!="undefined") document.getElementsByTagName("head")[0].appendChild(s);})(); /*-->*/ </script>
    <!-- end htmlcommentbox.com --></p> </div>
    </div>
    </div>
    <div class="box_btm"></div>

    </div>
    </div>
    <div class="clear"></div>
     
    mrcountry, Nov 5, 2011 IP
  2. ademmeda

    ademmeda Active Member

    Messages:
    354
    Likes Received:
    3
    Best Answers:
    3
    Trophy Points:
    70
    #2
    What document type do you have? Can you paste the whole page code?
     
    ademmeda, Nov 6, 2011 IP
  3. burminsky_pv

    burminsky_pv Peon

    Messages:
    78
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Here you are showing the code in xhtml but as I can see document type is html.
     
    burminsky_pv, Nov 7, 2011 IP
  4. mrcountry

    mrcountry Active Member

    Messages:
    45
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    71
    #4
    Thanks so much for trying to help. I have the 2 errors corrected and i'm passing validation but i'm having issues with Internet Explorer Compatibility, other browsers are working fine. Oh, by the way it would not let me post all the code so below is the web address Please let me if you need anything else. I really want to get my site running correctly. Thanks and hope to hear back from folks.

    http://www.studio105recording.com
     
    mrcountry, Nov 7, 2011 IP