homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Gold Sponsor 2015!
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

can't get wordpress to validate

5+ Year Member

Msg#: 4294971 posted 4:16 pm on Apr 10, 2011 (gmt 0)


I'm fairly certain that the reason it's not validating is because there is a div within a 'p' tag, but even so I can't figure out how to get rid of the 'p' tag. Any thoughts would be greatly appreciated!



Msg#: 4294971 posted 9:52 pm on Apr 10, 2011 (gmt 0)

IMHO, being strict with w3c validation is overestimated. It's good to run your site through validator to fix some problems you might have not noticed, but using any complex combination of technologies and trying to make your website fast is bound to get you w3c invalid status sooner or later. The only thing important is that you know why the problem is there and what's its impact on page rendering. Heck, google.com homepage has 39 errors.


WebmasterWorld Senior Member rocknbil us a WebmasterWorld Top Contributor of All Time 10+ Year Member

Msg#: 4294971 posted 4:11 pm on Apr 11, 2011 (gmt 0)

Can you change the gallery div from a div to a span? That would "fix" it. You should be able to locate the source code somewhere in your theme. You can assign display: block to the span in CSS to emulate div behavior.

Invalid code can trigger Quirks mode. Quirks mode can cause browser inconsistencies which leads to ( <choke, gag> ) IE conditionals and all sorts of unnecessary tricks. One error away . . . pretty close. :-)

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved