W3C home > Mailing lists > Public > www-validator@w3.org > February 2009

Re: VE][65] Grouping an image and <p> tag together within a link

From: olivier Thereaux <ot@w3.org>
Date: Mon, 23 Feb 2009 08:56:12 -0500
Cc: <www-validator@w3.org>
Message-Id: <F9F6772D-C26A-46D3-86C5-4C5889069AC2@w3.org>
To: Simon Wong <s_a_w_2@hotmail.com>

On 21-Feb-09, at 3:49 AM, Simon Wong wrote:

> I got the message "document type does not allow element "p" here;"

Indeed, you can't have a <p> within a <a>.

> I have a 3 x 2 row of catgories (see below) and I understand that I  
> cannot have a <p> tag placed here but what else can I do to change  
> this?

I guess you could try with a <span> ? (which you can style as display:  
block; if needed).

HTH,
-- 
olivier
Received on Monday, 23 February 2009 13:56:25 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:34 GMT