You are here: Re: Transitional validation with "noscript" « HTML « IT news, forums, messages
Re: Transitional validation with "noscript"

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация