Document type does not allow element

Discussion about HTML and XHTML related issues.

Document type does not allow element

Postby accessaw » Mon Oct 17, 2011 11:05 am

Hi newbie here looking for some help my site is getting these validation errors.

1. document type does not allow element "p" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag
//--></script> © Weber Grill Reviews<p></p>

2. end tag for "p" omitted, but OMITTAG NO was specified
</div>

3. nd tag for element "div" which is not open
</div>

my website is bestwebergrills.com thanks for any help you can give me
been stuck with these errors for a few days now and finding it hard to get help
accessaw
Rank 0 - Newcomer
Rank 0 - Newcomer
 
Posts: 2
Joined: Mon Oct 17, 2011 11:03 am

Re: Document type does not allow element

Postby Albert Wiersch » Mon Oct 17, 2011 8:40 pm

Hello,

Have you tried the online version of CSE HTML Validator? It's designed to provide friendlier messages. Please try it first and then post if you still have questions.

Link:
http://www.onlinewebcheck.com/?u=bestwebergrills.com

I hope this helps.
Image
Albert Wiersch
User avatar
Albert Wiersch
Site Admin
Site Admin
 
Posts: 2640
Joined: Sat Dec 11, 2004 10:23 am
Location: Near Dallas, TX

Re: Document type does not allow element

Postby accessaw » Tue Oct 18, 2011 3:18 am

Hi Albert this is all new to me I dont even know where to look in wp to fix the code.

1. The "p" element must have an end tag (</p>) but the end tag was not found. In XHTML, all elements not declared as empty (like "b", "p", "span", etc.) must have an end tag. Elements declared as empty (like "br", "img", "input", etc.) can have an end tag or can use the empty element shorthand.
<p> line 318

2. The "p" end tag (started in line 318) should appear before the "div" end tag or this end tag should be removed (nesting error).
</div> line326

3. The end tag for "div" was found, but all "div" start tags already have end tags. This appears to be an extra end tag that should be removed.
</div> line 338
accessaw
Rank 0 - Newcomer
Rank 0 - Newcomer
 
Posts: 2
Joined: Mon Oct 17, 2011 11:03 am

Re: Document type does not allow element

Postby Albert Wiersch » Tue Oct 18, 2011 7:29 am

Hello,

I'm sorry but I am not familiar with WordPress. You may want to ask on a WordPress support site as they could probably tell you how to address these issues and what files need to be fixed/changed so that they generate better/valid XHTML.
Image
Albert Wiersch
User avatar
Albert Wiersch
Site Admin
Site Admin
 
Posts: 2640
Joined: Sat Dec 11, 2004 10:23 am
Location: Near Dallas, TX


Return to HTML and XHTML

Who is online

Users browsing this forum: No registered users and 2 guests

cron