unch wrote:
> I almost have my page conforming to HTML 4.01 Strict validation, I'm 
> left with 2 errors that I can't figure out. Any help would very much 
> appreciated.
> 
> Thanks
> 
> 
> Below are the results of attempting to parse this document with an SGML 
> parser.
> 
> <td><a href="agf/docs/html/index.html" target="_blank">Docs</a></td>
>                                               ^
>       Error: there is no attribute "TARGET" for this element (in this 
> HTML version)
> 
> This one I can't figure out because target seems to be a valid attribute 
> of the anchor tag.
> http://www.w3.org/TR/html4/struct/links.html#h-12.2

If you look at http://www.w3.org/TR/html4/index/attributes.html, and 
scroll down to the row about the target attribute, you will see an "L" 
in the penulimate DTD column, meaning that this attribute is only valid 
in HTML4.01 transiitonl. I think you are meant to use

<a href="javascript:window.open('agf/docs/html/index.html')">

(Assuming that i have got the correct javascript there.)

> <img src="images/smoke_t.jpg" style="border=0px; visibility:hidden" alt="">
>        ^
>       Error: element "IMG" not allowed here; possible cause is an inline 
> element containing a block-level element
> 
> This line is at the very end of the document, right before </body>, does 
> this error mean there is a missing closing tag somewhere?
> 

Yes, img is inline, so it is not allowed just before </body>, because 
only block-level things are allowd there. If you want an image in a 
block on its own, just put it into a <p> or a <div>

<p><img src="images/smoke_t.jpg" style="border=0px; visibility:hidden" 
alt=""></p>

Tim.

P.S. This is probably not an appropriate newsgroup for this kind of 
question, but I am happy to help.



Reply via email to