• I am getting the following errors on the W3C Validator website, but I cannot find the errors on my page (for instance, I do not have any P tags where the error says I do).

    Error Line 250, Column 33: No p element in scope but a p end tag seen.
    for providing the photographs</p>
    ?
    Error Line 263, Column 54: Bad value totop for attribute rel on element a: The string totop is not a registered keyword.
    …lass="pagetop"><a href="#topofpage" rel="totop">PAGE TOP <sup>▲</sup></a></div>
    Syntax of list of link-type keywords:
    A whitespace-separated list of link types, with no duplicate keywords in the list. Each link type must be listed as allowed on <a> and <area> in the HTML specification, or must be listed as allowed on </a><a> and <area> on the Microformats wiki, or must be an absolute URL. You can register link types on the Microformats wiki yourself.
    Error Line 267, Column 10: No p element in scope but a p end tag seen.
    ?</p>
    ?
    Error Line 273, Column 390: End tag div seen, but there were open elements.
    …png" alt="Blessing of Pets and Other Animals" width="228" height="148" /></div>
    ?
    Error Line 273, Column 127: Unclosed element a.
    …ress/wp-content/uploads/2015/05/1.jpg"><span class="roll" style="width: 228px;…
    ?
    Error Line 274, Column 106: Start tag a seen but an element of the same type was already open.
    …ress/wp-content/uploads/2015/05/2.jpg"><span class="roll" style="width: 228px;…
    ?
    Error Line 274, Column 106: End tag a violates nesting rules.
    …ress/wp-content/uploads/2015/05/2.jpg"><span class="roll" style="width: 228px;…
    ?
    Error Line 274, Column 106: Cannot recover after last error. Any further errors will be ignored.
    …ress/wp-content/uploads/2015/05/2.jpg"><span class="roll" style="width: 228px;…</a>

    Here is the code I am using.

    <div class="bodywrapper">
    <div class="headingwrapper">
    <div class="mainheading">Blessing of Pets and Other Animals</div>
    <div class="heading">Saturday 4<span class="minitext">th</span> October, 2014</div>
    </div>
    <!-- headingwrapper -->
    <div class="headingwrapperright">
    <div class="accreditation">Many thanks to Edan Clarke
    for providing the photographs
    
    <!-- Go to www.addthis.com/dashboard to customize your tools -->
    <div class="sharebuttons"></div>
    <!-- sharebuttons -->
    
    </div>
    <!-- accreditation -->
    
    </div>
    <!-- headingwrapperright -->
    <div class="maintext">
    
    <img class="alignnone size-full wp-image-569" style="float: left; margin-right: 10px;" src="https://greencastleparish.com/wordpress/wp-content/uploads/2015/05/stfrancis.png" alt="St. Francis of Assisi (Patron Saint of animals and the environment)" width="159" height="239" />
    
    In the car park next to St. Patrick Church, a gathering of Greencastle parishioners assembled with their pets and other animals to mark the Feast Day of St. Francis of Assisi, Patron Saint of animals and the environment.
    
    The service was carried out by Fr. Eugene Hasson and the animals were blessed in honour of the Saint's love for them and all others in the world.
    
    Blessed are you, Lord God, maker of all living creatures. You called forth fish in the sea, birds in the air and animals on the land. You inspired St. Francis to call all of them his brothers and sisters. We ask you to bless this pet. By the power of your love, enable it to live according to your plan. May we always praise you for all your beauty in creation. Blessed are you, Lord our God, in all your creatures!????????????????????<em>Amen</em>
    <div class="pagetop"><a href="#topofpage" rel="totop">PAGE TOP <sup>▲</sup></a></div>
    </div>
    <!-- maintext -->
    
    <div class="navwrapper twobuttons">
    ?
    <div class="nav"><span class="navbuttonselected">1</span>
    <a href="blessingofpets2.html#gallery"><span class="navbutton" style="margin-right: 0;">2</span></a></div>
    <!-- nav -->
    </div>
    <!-- navwrapper -->
    
    <div class="imgborder2" style="clear: left;"><a href="https://greencastleparish.com/wordpress/wp-content/uploads/2015/05/1.jpg"><span class="roll" style="width: 228px; height: 148px;"></span><img class="alignnone wp-image-515 size-full" src="https://greencastleparish.com/wordpress/wp-content/uploads/2015/05/110.png" alt="Blessing of Pets and Other Animals" width="228" height="148" /></div>
    <div class="imgborder2"><a href="https://greencastleparish.com/wordpress/wp-content/uploads/2015/05/2.jpg"><span class="roll" style="width: 228px; height: 148px;"></span><img class="alignnone wp-image-481 size-full" src="https://greencastleparish.com/wordpress/wp-content/uploads/2015/05/210.png" alt="Blessing of Pets and Other Animals" width="228" height="148" /></a></div>

    Hope you can help me get to the bottom of this!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Marius L. J.

    (@clorith)

    Hi,

    If you are still experiencing these issues, could you share the the site that you are testing this on with us?

    Unfortunately in such cases an excerpt of the page does not provide the proper context as the issue might be grandfathered from a much earlier (or later) element.

    Thread Starter NiallASD

    (@niallasd)

    Thanks for the reply Marius, this is a page on the site – it’s a very early WIP so there’s not much to go on.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Do you know who built the site? WordPress generates the HTML of a website through PHP and that PHP code can live in many different files. As your site seems to be custom built I don’t think we can help you.

    Thread Starter NiallASD

    (@niallasd)

    I built the site myself – I had originally made it as a standard HTML site before converting to WordPress and in doing so copied and pasted my code with changes to suit.

    I notice when I click ‘View Source’ there is a lot of JavaScript relating to my plugins outside of <html></html> – could this be part of the problem? I cannot see how I can move it.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘W3C Validator showing errors that don't seem to exist’ is closed to new replies.