• W3C Validation showing about 25 same errors
    Error: Element div not allowed as child of element a in this context. (Suppressing further errors from this subtree.) <div class=”mask”>↩

    <span class=”thumbnail-post”><img src=”http://www..com/wp-content/uploads/2015/04/M-H-P-R-e1429313873420.jpg” alt=”P H” />↩

    <div class=”mask”>↩
    <div class=”icon”></div>↩
    </div>↩
    </span>↩

Viewing 12 replies - 1 through 12 (of 12 total)
  • Hi,

    You can change the span tag to div tag.
    Use a code editor to do search and replace.

    Thread Starter johnnygood

    (@johnnygood)

    Denzel,
    How do you write the code please.

    Thread Starter johnnygood

    (@johnnygood)

    I changed span to div then checked validator & became 3 times worse is there another way to fix? I reverted back to span.

    261. <div class=”mask”>↩
    262. <div class=”icon”></div>↩
    263. </div>↩
    264. </span>↩

    Hi,

    You have to change.

    <span class="thumbnail-post">

    to …

    <div class="thumbnail-post">

    and change
    </span>

    to

    </div>

    Thread Starter johnnygood

    (@johnnygood)

    Thank You so much Denzel it worked.
    Can you help me with these errors

    Error: End tag for body seen, but there were unclosed elements.

    From line 2096, column 1; to line 2096, column 7

    </script>↩</body>↩<!–E

    Error: Unclosed element div.

    From line 163, column 21; to line 163, column 38

    <div id=”wrapper”>↩

    Hi,

    This is not easy to find which element is missing end tag.
    Please post the URL that you used to validate.

    I try to see if I can find the missing end tag.

    Thank you

    Thread Starter johnnygood

    (@johnnygood)

    Hi,

    There is a missing div closing tag.
    Screenshot of report. http://i.imgur.com/59UFv5o.png

    Open up footer.php go to the end and find <body> and add </div> above it.

    Check all your webpage layout to see if anything breaks.

    This is a temporary fix, not sure if it’s the correct position to add that tag. Not even sure if that closing tag should be dynamically produced by PHP…

    As for your image alt, if you want to fix this, you can find all HTML img tag and add alt='' to it.

    I will let the Theme author know about these issues.
    Maybe he will want to get them fixed.

    Thank you.

    Thread Starter johnnygood

    (@johnnygood)

    Thank you so much Denzel,

    1st one worked but not sure how to fix image (As for your image alt, if you want to fix this, you can find all HTML img tag and add alt=” to it.)
    Which template do i find this?
    Or just leave it as I am under 30 errors from W3C validation now.

    Hi,

    You can leave it, if you don’t mind.

    Thank you

    Thread Starter johnnygood

    (@johnnygood)

    Hi Another fault
    error: Attribute itemprop not allowed on element meta at this point.

    From line 45, column 1; to line 45, column 217

    00542″ />↩<meta name=”description” itemprop=”description” content=”Psychic Medium Readings Intuition is what y…a sort of an instinctive knowledge you get, without the help of any process involving reasoning.” />↩↩<met

    Hi,

    Look at your webpage source code, the attribute itemprop is part of your SEO plugin.

    Please report this in their forum.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘div class=mask (error)’ is closed to new replies.