Re:Explain this please

by Andrew McFarland <aamcf(at)aamcf.co.uk>

 Date:  Sun, 26 May 2002 20:17:08 +0100
 To:  <hwg-techniques(at)hwg.org>
 References: 
  todo: View Thread, Original
These are easier to cope with.

In XHTML, all attribute values must be quoted, and all attribute names are=
=20
all lower case. Empty elements need a `/' at the end of them as well.

At 13:09 26/05/02 -0500, Linda Mercer/Wishstar wrote:
>   ...       <div id=3D'div06' onMouseover=3D"currentButton('div06',1)" ...
>                                     ^
>Error: there is no attribute "onMouseover" for this element (in this HTML=
=20
>version)

Should be onmouseover, onmouseout, etc.

>Error: attribute values must be quoted in XML
>=B7       Line =B7  78, column 19:
>           <div class=3Dfeatures2><a class=3D"heading"=
 href=3D"http://www.premi ...

should be class=3D"features2"

>=B7       Line =B7  88, column 35:
>   ... ><img src=3D"images/order.png" WIDTH=3D"79" HEIGHT=3D"22" alt=3D"ord=
 ...
>                                          ^
>Error: there is no attribute "WIDTH" for this element (in this HTML=
 version)

width and height, not WIDTH and HEIGHT


>Error: end tag for "img" omitted; end tags are required in XML for=20
>non-empty elements; empty elements require an end tag or the start tag=20
>must end with "/>"
>=B7       Line =B7  111, column 2:
>     <img style=3D"border:0;width:88px;height:31px"
>     ^
>Error: start tag was here

img is empty, so it should be:

<img style=3D"border:0;width:88px;height:31px" />

BTW, avoid inline styles in production pages. They are a nightmare to=20
maintain, and go against the whole ethos of separating style and content.

Andrew

--
http://aamcf.co.uk/

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA