Jump to content

couple errors, needing help


MoFish

Recommended Posts

hey. I just ran the w3 validator check on my site and have got 4 errors which i cant seem to get rid of. im trying to resolve them but i dont understand exactly how to get rid of them. here is a link to the errors im getting. [a href=\"http://validator.w3.org/check?uri=http%3A%2F%2Fmo.dotgeek.org%2F&charset=%28detect+automatically%29&doctype=Inline\" target=\"_blank\"]click here[/a]. can anyone help me clear them up?

Thanks Again, Mofish

[code]
<td width='70%'><a href='index.php?page=viewgallery&amp;category=$category'><b>$category Gallery</b> - Click Here To View</a></td>

<td width='30%' class='right-align'><a href='index.php?page=viewgallery&amp;category=$category'><img src='gallery/tn_$image' /></a></td>
[/code]
Link to comment
Share on other sites

[code]<div class='random-image'><a HREF='index.php?page=viewgallery&category=Random'><img src='gallery/tn_mr_bean1.jpg' /></a></div> [/code]

Change to:
[code]<div class='random-image'><a href='index.php?page=viewgallery&amp;category=Random'><img src='gallery/tn_mr_bean1.jpg' /></a></div> [/code]

That should clear all your errors.
Link to comment
Share on other sites

Are you viewing it through the source code? this is the code im trying to play around with. I have href in small, and am using &amp;

[code]

echo"<table width='100%' border='0' cellspacing='0'>
<tr>

<td width='70%'><a href='index.php?page=viewgallery&amp;category=$category'><b>$category Gallery</b> - Click Here To View</a></td>
                                        
<td width='30%' class='right-align'><a href='index.php?page=viewgallery&amp;category=$category'><img src='gallery/tn_$image' /></a></td>

</tr>";

[/code]
Link to comment
Share on other sites

The link you gave to the validator output (as well as the online code itself) are both the same. They use HREF (incorrect) and should be href, they have an image alt tag missing, and they pass a parameter in the link using & which needs to be &amp; which is what causes all the errors on line 73.

If you fix those online and revalidate there should not be any errors.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.