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 7 of 7
  1. #1
    Regular Coder
    Join Date
    Jun 2007
    Posts
    155
    Thanks
    19
    Thanked 0 Times in 0 Posts

    Validation Problems

    Well, using the W3C HTML Validator, I got these errors. But I do not under stand what there are telling me. So I am going to list them here.

    1.Error Line 108 column 39: unclosed start-tag requires SHORTTAG YES.

    <p align="left" class="textcontent"<em>-posted by Squid on June 30th 2007</e


    2.Error Line 108 column 39: document type does not allow element "p" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag.

    <p align="left" class="textcontent"<em>-posted by Squid on June 30th 2007</e

    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>").


    3.Error Line 109 column 39: document type does not allow element "p" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag.

    <p align="left" class="textcontent"><br />

    4.Error Line 112 column 14: end tag for "p" omitted, but OMITTAG NO was specified.

    </blockquote>

    You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".

    Any Help appreciated.

  • #2
    Regular Coder
    Join Date
    Dec 2005
    Location
    Ohio
    Posts
    286
    Thanks
    7
    Thanked 9 Times in 9 Posts
    Quote Originally Posted by l Squid l View Post
    1.Error Line 108 column 39: unclosed start-tag requires SHORTTAG YES.

    <p align="left" class="textcontent"<em>-posted by Squid on June 30th 2007</e
    If you copied this exactly from the validator, I am going to assume it is because you simply have things out of order and your tags are not closed. For example, here is the code you have:

    Code:
    <p align="left" class="textcontent"<em>-posted by Squid on June 30th 2007</e
    and here is what it should look like:

    Code:
    <p align="left" class="textcontent"><em>-posted by Squid on June 30th 2007</em></p>
    However, you would not want to use align="left" because it deprecated and CSS can do exactly what you want it to do. As for the rest, what I often find is that an error early in a document, creates errors throughout the rest of it. I would try to correct that error and see if the others are still there. Usually what the others mean is that you have neglected to close a tag properly, which is you have done.

    Hope this helps.

  • #3
    Regular Coder
    Join Date
    Jun 2007
    Posts
    155
    Thanks
    19
    Thanked 0 Times in 0 Posts
    Error Line 108 column 39: document type does not allow element "p" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag.

    <p align="left" class="textcontent"><em>-posted by Squid on June 30th 2007</

    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>").



    This Validator isnt picking up this m></p>, I have it correctly but the validator doesn't view it as correct.

  • #4
    Regular Coder BWiz's Avatar
    Join Date
    Mar 2006
    Location
    Sol System
    Posts
    471
    Thanks
    7
    Thanked 21 Times in 21 Posts
    Shouldn't it be </em>?
    BWiz :: Happy Coding!
    2006
    2007 2008 2009
    2010 2011
    Irrational numbers make no sense.

  • #5
    Regular Coder
    Join Date
    Jun 2007
    Posts
    155
    Thanks
    19
    Thanked 0 Times in 0 Posts
    Yeah, thats what im saying, if you look at the source on my Website, you will see but on the Validator, it shows just the </
    http://elementalstudios.freehostia.com/ <--See.

  • #6
    Senior Coder Arbitrator's Avatar
    Join Date
    Mar 2006
    Location
    Splendora, Texas, United States of America
    Posts
    3,300
    Thanks
    28
    Thanked 275 Times in 269 Posts
    Quote Originally Posted by l Squid l View Post
    1.Error Line 108 column 39: unclosed start-tag requires SHORTTAG YES.
    To shed some light on this cryptic error message, know that SHORTTAG is an SGML feature. SGML is the parent language of HTML and XML. One SHORTTAG subfeature is UNCLOSED, which allows you to implicitly close a tag by opening another tag immediately after.

    Code:
    <p<em></em></p>
    In the above example, the p element start tag end delimiter (>) has been omitted and the tag has been implicitly closed. SHORTTAG has been set to YES (enabled) in the HTML SGML declaration; browsers don’t support that feature though. On the other hand, in XML and XML‐derived languages such as XHTML, all SHORTTAG subfeatures are disabled.

    The solution is to explicitly close all tags (or alter the SGML declaration, which is not an option when using XML languages).

    Quote Originally Posted by l Squid l View Post
    Error Line 108 column 39: document type does not allow element "p" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag.
    This means that the p element has been placed inside an element where it is not allowed. It’s possible for this error to be inadvertently triggered by the presence of other errors as well.

    In this case, it seems that you’ve forgotten to close a p element, so the validator interprets it as containing the next p element, something which is not allowed. This is only because you are using (claiming to use) XHTML, where all elements must be explicitly closed. In HTML, the end tag for the p element is optional and this would not be an error.
    Last edited by Arbitrator; 07-15-2007 at 04:19 AM. Reason: I made the explanation a bit clearer.
    For every complex problem, there is an answer that is clear, simple, and wrong.

  • #7
    Regular Coder
    Join Date
    Jun 2007
    Posts
    155
    Thanks
    19
    Thanked 0 Times in 0 Posts
    Ok finally found it, looks like i forgot to close one of the <p> tags. Wow such a small error causing such a big problem. Thank you guys, for all your help!
    Last edited by l Squid l; 07-15-2007 at 05:07 PM.


  •  

    Posting Permissions

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