If you're using XHTML, inline elements (like imgs) need to be contained within a block level element (like a div).
On Thu, Nov 6, 2008 at 3:04 PM, James Jeffery < [EMAIL PROTECTED]> wrote: > A very silly question that I cannot believe I am asking. > > I have never had to use <img> within the body tag. I was playing about with > a test case for a client and happened to put <img> directly within the body > (was for an image on screen with next and prev. links ... a gallery). > > I validated, and it was saying <img> needs to be contained. I checked the > specs but could not see anything that was stating this. > > In the real application it wouldn't be directly within the body, because it > would be within a page section <div> anyway, but am just curious. > > James. > > ******************************************************************* > List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm > Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm > Help: [EMAIL PROTECTED] > ******************************************************************* -- Joseph R. B. Taylor Designer / Developer -------------------------------------- Sites by Joe, LLC "Clean, Simple and Elegant Web Design" Phone: (609) 335-3076 Fax: (866) 301-8045 Web: http://sitesbyjoe.com Email: [EMAIL PROTECTED] ******************************************************************* List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] *******************************************************************