|
Posted by Adrienne Boswell on 09/03/07 17:53
Gazing into my crystal ball I observed sevillad <sevillad@gmail.com>
writing in news:1188838643.367029.110840@y42g2000hsy.googlegroups.com:
> Hi,
>
> I was trying to make my main page compliant (as per w3.org) for HTML
> Transitional 4.01, and there's one error I can't solve:
>
> http://validator.w3.org/check?uri=http%3A%2F%2Fwww.davidsevilla.com%
2F&
> charset=%28detect+automatically%29&doctype=Inline&group=0&ss=1
>
>>From what I've read around, I think it's related to having "noscript"
> inside a "p".
Yes, because NOSCRIPT is a block level element, and the P element cannot
contain other block level elements.
And sure enough, if I remove the noscript, the page
> validates. I have it in place there because I try to get my email in
> the page with Javascript (to avoid some spam) and I want an
> alternative for those who may turn it off. Well, actually it's more
> out of curiosity that I'd like to find a neat solution :)
>
Change the structure:
<p>
Phone: +43 (0)732 2468 5229<br>
Fax: +43 (0)732 2468 5212<br>
<script type="text/javascript">
emailE='oeaw.ac.at'
emailE=('david.sevilla' + '@' + emailE)
document.write('E-mail:<A href="mailto:'+emailE +'">'+emailE+'<'+'/a>')
</script>
</p>
<noscript>E-mail:<img src="email-ricam.png" height="21" width="167"
alt="My email"></noscript>
--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
Navigation:
[Reply to this message]
|