You are here: Re: Formatting links « HTML « IT news, forums, messages
Re: Formatting links

Posted by Toby Inkster on 11/24/05 09:56

Neredbojias wrote:

> <a href="welcome.html" style="display:block"><h2>Welcome</h2></a>

A is still inline, so can't contain an H2 element. (Just because you've
made it *look* like it's a block element, doesn't mean it really *is* a
block element!)

If you want a valid way of nesting an H2 element within an A element, both
of these will validate:

<a><object><h2>Hello</h2></object></a>

<a><noscript><h2>World</h2></noscript></a>

Though neither is likely to do what the OP wants.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

 

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

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