I ran the usual home page test in w3.org and I get this error for all three of my slide show images.

Line 117, Column 129: end tag for "img" omitted, but OMITTAG NO was specified
…rdroom table" src="/sites/all/themes/bluemasters/images/slide-image-1.jpg">

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

I do not see any errors in the source files and cannot see what I need to do to change this. I checked other sites using blue masters and have seen similar errors there too.

How do I fix this?

Comments

Oceanman’s picture

This is the code from my /sites/all/themes/bluemasters/page--front.tpl.php

    <div id="banner">
    <?php print render($page['banner']); ?>
    
        <div class="main_view">
            <div class="window">
                <div class="image_reel">
                    <a href="<?php print url('node/1'); ?>"><img alt="boardroom table" src="<?php print base_path() . drupal_get_path('theme', 'bluemasters') . '/images/slide-image-1.jpg'; ?>"></a>
                    <a href="<?php print url('node/5'); ?>"><img alt="Stonehenge" src="<?php print base_path() . drupal_get_path('theme', 'bluemasters') . '/images/slide-image-2a.jpg'; ?>"></a>
                    <a href="<?php print url('node/1'); ?>"><img alt="Teck" src="<?php print base_path() . drupal_get_path('theme', 'bluemasters') . '/images/slide-image-1a.jpg'; ?>"></a>
                </div>
                <div class="descriptions">
                    <div class="desc" style="display: none;">About us</div>
                    <div class="desc" style="display: none;">What we offer</div>
                    <div class="desc" style="display: none;">Contact Us</div>
                </div>
            </div>
        
            <div class="paging">
                <a rel="1" href="#">1</a>
                <a rel="2" href="#">2</a>
                <a rel="3" href="#">3</a>
            </div>
        </div>
    </div><!--EOF:banner-->
Oceanman’s picture

Does anyone have this working without W3.org errors? May I see your code? Thanks!!

pwhiteside’s picture

Hi,

I have mine ok, www.signingsensations.com I only get an error on an external source.

Here is the code used.

    <div id="banner">
    <?php print render($page['banner']); ?>
    
<div class="main_view">
            <div class="window">
                <div class="image_reel">
                    <a href="<?php print url('about'); ?>"><img src="sites/default/themes/signingsensations/images/slideshow/about.jpg"  alt="About Signing Sensations"/></a>
                    <a href="<?php print url('about'); ?>"><img src="sites/default/themes/signingsensations/images/slideshow/classroom.jpg"  alt="About Signing Sensations"/></a>
                </div>
                <div class="descriptions">
                    <div class="desc" style="display: none;">Learn from a Deaf tutor. Shirley teaches Level 1 and Level 2 BSL...</div>
                    <div class="desc" style="display: none;">Learn British Sign Language the easy way...</div>
                </div>
            </div>
        
            <div class="paging">
                <a rel="1" href="#">1</a>
                <a rel="2" href="#">2</a>
            </div>
        </div>
    </div><!--EOF:banner-->

I hope this helps.

Best wishes, Phil.

Oceanman’s picture

Like magic! Thanks Phil, I found the error. I was missing a slash.

In the <div class="image_reel"> for the following href code
You have this at the end of the code:
/></a>
I had this:
></a>

You have to have the slash to close the element and please W3.org
Thanks again for posting your code.

pwhiteside’s picture

Status: Active » Closed (fixed)

No problem, I'm glad it helped.