Since links are inline elements, they shouldn't contain block elements,
such as <div> and <p>.

Why not use <span> (native) inline elements?  You should then be able to
use CSS to display them as you wish (including display: block if you want)
using the classes you have ascribed.



On Wed, November 4, 2009 12:39 pm, dionisis karampinis 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]
> *******************************************************************




*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [email protected]
*******************************************************************

Reply via email to