If you are worried about validation an anchor tag cannot have block elements in it, if I remember correctly, which is a little annoying. I think HTML2 and HTML5 correct this.
Barring validation, it seems like the way to do it. I am not sure, but you may want to check how IE6 handles this too. On Wed, Nov 4, 2009 at 06:39, dionisis karampinis <[email protected]>wrote: > Hello to all! > > I would like your comments regarding the inclusion of a DIV, inside a Link > tag. > > I need to make the following div element - 'linkable' , as such when the > user hovers on it, to be able to follow a link to another page. > > e.g. > > <a href="http://www.impelmedia.co.uk/index.php/services/design/"> > *<div id="service1"> > <p class="servicep">My Heading</p> > <p class="summary">Lorem ipsum text lorem ipsum text lorem ipsum text orem > ipsum text lorem ipsum text orem ipsum text lorem ipsum text</p> > </div>* > </a> > > Do you think this is a semantic way of structuring these elements or not ? > And if not do you know if there are any other alternatives so i could > perform the same functionality? > > Thanks in advance > > Regards > > Dionisis K > ******************************************************************* List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [email protected] *******************************************************************
