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 2 of 2
  1. #1
    Regular Coder
    Join Date
    Sep 2006
    Location
    Colorado
    Posts
    132
    Thanks
    7
    Thanked 1 Time in 1 Post

    My page isn't validating

    So Im almost done creating a new site for a client. As usual I always validate the layout when I'm done designing it. I've fixed all the errors except for one.

    When I try to validate this page

    http://richardsonrealtyonline.com/test.htm

    I get this error:

    Line 52 column 22: document type does not allow element "div" here; missing one of "object", "ins", "del", "map", "button" start-tag.

    <div id="myGallery">



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

    Any help is greatly appreciated.
    -bubbles

  • #2
    Senior Coder koyama's Avatar
    Join Date
    Dec 2006
    Location
    Copenhagen, Denmark
    Posts
    1,246
    Thanks
    1
    Thanked 5 Times in 5 Posts
    The problem is that one is not allowed to nest (natural) block-level elements within the h1 element.


  •  

    Posting Permissions

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