Home   News  Product reviews  Website reviews  Forums   Competitions  Subscribe 


Web Building >> Web design & build
 |  Print Topic
Jump to first unread post. Pages: 1
Jedi
regular


Reg'd: Sat
Posts: 1094
HTML Validation
      #346889 - Wed May 09 2007 03:31 PM

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?

--------------------
Why Climb Mount Everest? 'Because Its There' - George Mallory 1922
Mount Everest The British Story
www.everest1953.co.uk


Post Extras: Print Post   Remind Me!   Notify Moderator  
Wiggster
regular


Reg'd: Tue
Posts: 135
Loc: Yorkshire, UK
Re: HTML Validation [Re: Jedi]
      #346894 - Wed May 09 2007 04:09 PM

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" /> 



Post Extras: Print Post   Remind Me!   Notify Moderator  
Jedi
regular


Reg'd: Sat
Posts: 1094
Re: HTML Validation [Re: Wiggster]
      #346924 - Wed May 09 2007 07:13 PM

Cheers mate!

--------------------
Why Climb Mount Everest? 'Because Its There' - George Mallory 1922
Mount Everest The British Story
www.everest1953.co.uk


Post Extras: Print Post   Remind Me!   Notify Moderator  
Jedi
regular


Reg'd: Sat
Posts: 1094
Re: HTML Validation [Re: Jedi]
      #347033 - Thu May 10 2007 03:15 PM

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

--------------------
Why Climb Mount Everest? 'Because Its There' - George Mallory 1922
Mount Everest The British Story
www.everest1953.co.uk


Post Extras: Print Post   Remind Me!   Notify Moderator  
Wiggster
regular


Reg'd: Tue
Posts: 135
Loc: Yorkshire, UK
Re: HTML Validation [Re: Jedi]
      #347653 - Sun May 13 2007 09:48 PM

Same code really.

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



Post Extras: Print Post   Remind Me!   Notify Moderator  
Jedi
regular


Reg'd: Sat
Posts: 1094
Re: HTML Validation [Re: Jedi]
      #348705 - Sun May 20 2007 02:59 PM

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

--------------------
Why Climb Mount Everest? 'Because Its There' - George Mallory 1922
Mount Everest The British Story
www.everest1953.co.uk


Post Extras: Print Post   Remind Me!   Notify Moderator  
Wiggster
regular


Reg'd: Tue
Posts: 135
Loc: Yorkshire, UK
Re: HTML Validation [Re: Jedi]
      #348767 - Sun May 20 2007 08:37 PM

why so many paragraph (<p>) tags?

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


Post Extras: Print Post   Remind Me!   Notify Moderator  
Jedi
regular


Reg'd: Sat
Posts: 1094
Re: HTML Validation [Re: Wiggster]
      #349128 - Tue May 22 2007 08:36 PM

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.

--------------------
Why Climb Mount Everest? 'Because Its There' - George Mallory 1922
Mount Everest The British Story
www.everest1953.co.uk


Post Extras: Print Post   Remind Me!   Notify Moderator  
Wiggster
regular


Reg'd: Tue
Posts: 135
Loc: Yorkshire, UK
Re: HTML Validation [Re: Jedi]
      #349443 - Thu May 24 2007 04:58 PM

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" /> 



Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1

Rate this topic

Jump to


Extra information
0 registered and 9 anonymous users are browsing this forum.

Moderator:  putasolutions, Joe_London, greysts, bricat, Nanook, Hello_There, John_McKenna, Mouse, TheFatControlleR, kimhollamby 


Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      Mark-up is enabled

Rating:
Topic views: 0

Contact Us | Privacy statement Main website