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?




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


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.
Received on Monday, 23 February 2009 11:05:30 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:58 UTC