Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

A validation error i can't understand..

Featured Replies

Hey all,

http://www.jlaviationphotography.info/

 

 

Now, this is my first site as some may already now, and ive fixed all but one validation errors on the home page.

 

On the top i have jquery slideshow and in order for that to function, i must have the tag 'rel' in the image. If i remove this tag the validation error goes, however the slideshow wont function...

 

Here is the validation error:

 

http://validator.w3.org/check?uri=http%3A%2F%2Fwww.jlaviationphotography.info%2F&charset=%28detect+automatically%29&doctype=Inline&group=0&user-agent=W3C_Validator%2F1.654

 

and here is the code for the site:

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="author" content="Jimmy Leaman"/>
<meta name="expires" content="NEVER"/>
<meta name="publisher" content="Jimmy Leaman Aviation Photography"/>
<meta name="copyright" content="Jimmy Leaman Aviation Photography"/>
<meta name="page-topic" content="Photography"/>
<meta name="page-topic" content="Aviation"/>
<meta name="keywords" content="aircraft, aviation, photos, photographs, photography, planes, airshows, airports, airliners, military, warbirds, vintage, spitfire, airbus, boeing, f-16, tornado, stealth, fighter, jimmy, james, leaman, london, heathrow, uk, exeter, airport, airlines, commericial, aviation, jetphotos, workflow"/>
<meta name="description" content="Aviation Photography by Jimmy Leaman. Airshow and Commercial Aviation Photography. Digital and paper prints available."/>
<meta name="page-type" content="Pictures/photos"/>
<meta name="audience" content="All"/>
<meta name="robots" content="INDEX,NOFOLLOW"/>
<meta name="google-site-verification" content="3H2egk0zWlPYVRNS0hrikxzZ5BSRmG5AwVTU20HR2Zk" />

<title>Jimmy Leaman Aviation Photography</title>

<link rel="stylesheet" type="text/css" href="css/style.css"/>
<link rel="stylesheet" type="text/css" href="shadowbox-build-3.0b/shadowbox-build-3.0b/shadowbox.css"/>
<script type="text/javascript" src="js/jquery-1.3.2.js"></script>
<script type="text/javascript" src="shadowbox-build-3.0b/shadowbox-build-3.0b/adapters/shadowbox-jquery.js"></script>
<script type="text/javascript" src="shadowbox-build-3.0b/shadowbox-build-3.0b/shadowbox.js"></script>
<script type="text/javascript">
Shadowbox.init();
</script>

</head>
<body> 
<!--CONTAINER -->
<div id="container">

<!--HEADER -->
<div id="header">
<img src="images/header.jpg" width="458" height="54" alt="header"/><a href="index.html"><img src="images/home.jpg" alt="Home" width="50" height="54" hspace="18" border="0" /></a><a href="gallery.html"><img src="images/gallery.jpg" alt="Gallery" width="50" height="54" hspace="18" border="0" /></a><a href="about.html"><img src="images/about.jpg" alt="About" width="50" height="54" hspace="18" border="0" /></a><a href="contact.html"><img src="images/contact.jpg" alt="Contact" width="55" height="54" hspace="18" border="0" /></a>
<!--END HEADER -->
</div>

<!--FLASHCONTAINER -->
<div id="flashcontainer">
<script type="text/javascript" src="slideshow.js"></script>
<div id="gallery">
   <a href="#" class="show">
	<img src="images/1.jpg" alt="9m744" width="798" height="248" rel="gallery"/>
       </a>

<a href="#">
	<img src="images/2.jpg" alt="ba777" width="798" height="248" rel="gallery"/>
    </a>

   <a href="#">
       <img src="images/3.jpg" alt="redarrow1" width="798" height="248" rel="gallery"/>
       </a>

   <a href="#">
       <img src="images/4.jpg" alt="dhl" width="798" height="248" rel="gallery"/>
       </a>

   <a href="#">
       <img src="images/5.jpg" alt="redarrow2" width="798" height="248" rel="gallery"/>
       </a>

</div>
<div class="clear"></div>
<!--END FLASHCONTAINER -->
</div>

<!--CONTENT -->
<div id="content"> 
<p class="h1"> Welcome to Jimmy Leaman Aviation Photography </p>
<p class="p"> You have reached my online portfolio of aviation photography. Through-out the site you will see <br /> various galleries of a wide variety of aircraft, however predominantly based on commercial aviation. </p>
<p class="p"> All photos shown throughout the site are for sale, in both digital and print format.<br /> For more information please visit the 'contact' page. <br /> 
I hope you enjoy browsing my site and portfolio as it extends throughout the year.</p>

<!--NEWS -->
<div id="news"> 
<p class="newsh1">NEWS</p>
<p class="newsp">
<a href="http://www.jetphotos.net/viewphoto.php?id=6651638&nseq=18" target="_blank">Screeners Choice Award Achieved</a></p>
<!-- END NEWS -->
</div>

<!--END CONTENT -->
</div>

<!--FOOTER -->
<div id="footer">
<a href="http://www.jlaviationphotography.info"><img src="images/footer.jpg" width="300" height="32" border="0" alt="footer" /></a>
<!--END FOOTER -->
</div>

<!--END CONTAINER -->
</div>
</body>
</html>

 

 

 

Thankyou all in advanced!

move the

 

rel="gallery"

 

from the img element to the a href element. That will fix the validation issue.

  • Author

move the

 

rel="gallery"

 

from the img element to the a href element. That will fix the validation issue.

 

Thanks for your answers guys.

 

bocaj - It's fixes the validation issue however as a affect, its stop the jquery slideshow from functioning.

i checked the shadowbox website and they said that's how to do it :o

 

Try making the href="#" point to the image source

 

i.e

 


<a href="images/1.jpg" class="show" rel="gallery">
               <img src="images/1.jpg" alt="9m744" width="798" height="248" />
       </a>

 

 

if that doesn't work post the js code and i'll change the hooks for you :).

  • Author

i checked the shadowbox website and they said that's how to do it :o

 

Try making the href="#" point to the image source

 

i.e

 


<a href="images/1.jpg" class="show" rel="gallery">
               <img src="images/1.jpg" alt="9m744" width="798" height="248" />
       </a>

 

 

if that doesn't work post the js code and i'll change the hooks for you :).

 

Thanks all guys -

 

I have now sorted it out, by deleting the PHP script linking to the 'caption' which contains the 'rel' tag..

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.