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

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

From: Simon Wong <s_a_w_2@hotmail.com>
Date: Sat, 21 Feb 2009 08:49:03 +0000
Message-ID: <BAY113-W17F417F9023269832C2EECC7B00@phx.gbl>
To: <www-validator@w3.org>

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

 

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 require the image and text to be grouped as a link together?

 

http://www.sportfocus.com/

 

<div class="category">
            <a href="corporate/web_design.html">
             <img src="corporate/images/web.jpg" alt="Web Design" />
                <p>Web Design</p>
            </a>
            </div>
            
            <div class="category">
            <a href="corporate/membership.html">
             <img src="corporate/images/crm.jpg" alt="Membership / CRM" />
                <p>Membership / CRM</p>
            </a>
            </div>

 

Validating http://www.sportfocus.com/index.html
Error [65]: "document type does not allow element X here; missing one of Y start-tag"

_________________________________________________________________
Twice the fun—Share photos while you chat with Windows Live Messenger. Learn more.
http://www.microsoft.com/uk/windows/windowslive/products/messenger.aspx
Received on Monday, 23 February 2009 11:05:30 GMT

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