SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: html validation

  1. #1
    SitePoint Zealot Scribbller's Avatar
    Join Date
    Mar 2004
    Location
    Islamabad, Pakistan
    Posts
    158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    html validation

    I am having this small problem with html validation on my site

    here is the block of code which is giving me problems
    Code:
          <td width="5" rowspan="2"></td>
          <td align="right" colspan="3"><img src="http://www.nauman.info/ppdev/images/banners/tour_logo.jpg"></td>
    HTML validator is giving this error

    1. Error Line 405 column 104: required attribute "alt" not specified.

    ...o/ppdev/images/banners/tour_logo.jpg"></td>

    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 <script>.


    2. Error Line 405 column 109: end tag for "img" omitted, but OMITTAG NO was specified.

    ...ev/images/banners/tour_logo.jpg"></td>

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


    3. Info Line 405 column 36: start tag was here.

    <td align="right" colspan="3"><img src="http://www.nauman.info/ppdev/image
    Administrator - http://www.pakpassion.net

  2. #2
    SQL Consultant gold trophysilver trophybronze trophy
    r937's Avatar
    Join Date
    Jul 2002
    Location
    Toronto, Canada
    Posts
    39,341
    Mentioned
    63 Post(s)
    Tagged
    3 Thread(s)
    1. add an ALT attribute to the IMG
    2. add a closing slash to the IMG -- <IMG ... />
    3. see 2.

    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL
    "giving out my real stuffs"

  3. #3
    SitePoint Zealot Scribbller's Avatar
    Join Date
    Mar 2004
    Location
    Islamabad, Pakistan
    Posts
    158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Cheers thanks for that.
    Administrator - http://www.pakpassion.net


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •