Jump to content


Valid XHTML question


1 reply to this topic

#1 N-sane Noob

    Noob Leader

  • Publishing Betazoids
  • PipPipPip
  • 873 posts
  • Gender:Male
  • Location:Canada
  • Interests:Taking over stuff

Posted 31 December 2006 - 05:09 PM

I am really -|- (don't know anything) about the XHTML validation and what it does. But when I do try to validate my website, it gives me errors.

Quote

# Line 112 column 87: required attribute "alt" not specified.

...s/news2/Guild-Wars-Nightfall-2.jpg" /></p>

The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element.

Typical values for type are type="text/css" for <style> and type="text/javascript" for &lt;script>.


# Error Line 191 column 125: required attribute "alt" not specified.

...ob/Unlimited-Visuals-Signature.jpg" /></div>


# Error Line 192 column 794: end tag for "p" omitted, but OMITTAG NO was specified.

...ite. Good luck to you all and welcome.</div>

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


# Info Line 192 column 0: start tag was here.

<p>I have finally decided to make my website both blog and forum based. <a href=

# Error Line 206 column 11: an attribute value specification must be an attribute value literal unless SHORTTAG YES is specified.

<div align=right><a href="http://feeds.feedburner.com/UnlimitedVisuals" title="S


# Error Line 214 column 7: "ul" not finished but containing element ended.

</div>


# Error Line 214 column 7: end tag for "ul" omitted, but OMITTAG NO was specified.

</div>


# Info Line 213 column 2: start tag was here.

<ul>

# Error Line 258 column 10: end tag for "ul" omitted, but OMITTAG NO was specified.

</div>


# Info Line 250 column 2: start tag was here.

<ul>

# Error Line 259 column 6: end tag for element "ul" which is not open.

</ul>

The Validator found an end tag for the above element, but that element is not currently open. This is often caused by a leftover end tag from an element that was removed during editing, or by an implicitly closed element (if you have an error related to an element being used where it is not allowed, this is almost certainly the case). In the latter case this error will disappear as soon as you fix the original problem.

If this error occured in a script section of your document, you should probably read this FAQ entry.


I need answers on what is this XHTML validation and do I have to change everything to make the errors disappear?

Edited by N-sane Noob, 31 December 2006 - 05:09 PM.


#2 rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 01 January 2007 - 12:39 AM

The first of the problems can be cleared up by adding an alt attribute to your images. All img tags require one, and even one having no value counts (i.e. <img alt="">). The rest are probably just invalidly nested so we'll have to see the source to know more.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users