Jedi
(regular)
Wed May 09 2007 03:31 PM
HTML Validation

I have used the 'HTML Validation' tool to check my site for errors. It shows 3 errors, view here

Example:

Error Line 8 column 3877: required attribute "ALT" not specified.

...ww_Top100Climbing_com.gif" border="0"></a></p><p align="left"></p><p align="l

What I want to know is it the > in red above the bit that is missing from my code?


Wiggster
(regular)
Wed May 09 2007 04:09 PM
Re: HTML Validation

No it isn't.

The red part means that something has been missing in between the < and > part of the HTML.

When you have an image, you need to specify and ALT part, so that those users who cannot see the image (screen reader or those who have turned off images know what the image is about.

So your code should be Code:
  ...ww_Top100Climbing_com.gif" border="0" alt="imageofwhatever" title="titleofyourimage" /> 



Jedi
(regular)
Wed May 09 2007 07:13 PM
Re: HTML Validation

Cheers mate!

Jedi
(regular)
Thu May 10 2007 03:15 PM
Re: HTML Validation

One more thing, how or is it possible to put an ALT attribute onto my Counter?

Counter code looks like this: <img src="/tinc?key=ZOin0tFq">

Thanks again


Wiggster
(regular)
Sun May 13 2007 09:48 PM
Re: HTML Validation

Same code really.

Code:
  <img src="/tinc?key=ZOin0tFq" alt="descriptionoftheimage">



Jedi
(regular)
Sun May 20 2007 02:59 PM
Re: HTML Validation

Can someone please help me out and explain what this means, thanks.

Error Line 8 column 1409: document type does not allow element "P" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag.
...e="2"><p></p><p></p><font size="2"><p></p></font><p><strong><span style="font


Wiggster
(regular)
Sun May 20 2007 08:37 PM
Re: HTML Validation

why so many paragraph (<p>) tags?

they don't seem to be doing anything....


Jedi
(regular)
Tue May 22 2007 08:36 PM
Re: HTML Validation

Hi Wiggster

I dont know why there are so many <p> tags. My site is built using a Sitebuilder and I have no access to most of the HTML.

If you take a look at my website (signature below) and go to the Facts page, click on 'page view source' you will see where that bit of code came from.


Wiggster
(regular)
Thu May 24 2007 04:58 PM
Re: HTML Validation

If you can remove some of those <p> tags it will remove almost all of your errors.

You have <p></p> that are not doing anything.

The other errors are simple ALT errors again.

When using images, it is wise to give the ALT and title tags within the image

Code:
 <img src="myimage" width="50" height="50" alt="nameofmyimage" title="this is my image of something" /> 



Contact Us | Privacy statement Main website
Hitwise Top 10 Award Winner - Jan-Mar 2005

About us | Contact us | Link to us | Terms & Conditions | Privacy Policy
© Copyright IPC Media Limited, All rights reserved