Here's the code

              <p id="LABELa">CATEGORY</p> <p id="LABELb">LOCATION</p> <p id="LABELc">SEARCH</p>

The W3C Validator says that the > between LABELa">CATEGORY has something wrong with it. I don't see what is wrong though.

The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).

One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).

  • I've cleaned up your question, but I wasn't sure if that's a typo in your code sample or if that brace actually exists. Matthew Brindley over 7 years ago
  • Updated your question with the extra code you provided, thanks. Matthew Brindley over 7 years ago
  • Some time ago, I really needed to buy a good house for my corporation but I didn't earn enough cash and could not buy something. Thank God my dude adviced to try to get the <a href="http://goodfinance-blog.com/topics/credit-loans">credit loans</a> at creditors. Thus, I acted so and was satisfied with my bank loan. PARKERVERNA24 almost 5 years ago

3 answers

0
points
This was chosen as the best answer

without seeing the rest of the code online, i can only guess, but i'd assume that you have the parent of those P elements being an inherently inline element? something to look for. please post the full page so we can peek at the backend, even if it's a rendered copy without client branding.

Answered over 7 years ago by Jeremy Bechtold
0
points

We would need to see what comes before and after the P element in order to answer. Also, what DTD are you validating against?

Answered over 7 years ago by Richard Grevers
  • <p id="LABELa">CATEGORY</p> <p id="LABELb">LOCATION</p> <p id="LABELc">SEARCH</p> they all got the same exact thing and now the "LABELc" part is messed up it said also. this is an html page. doctype is <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> canyonchase1 over 7 years ago
  • That still isn't enough information: The key thing is the parent element of the p (the element that it is sitting inside). e.g. a paragraph cannot be directly inside a <ul> or <tr>) Richard Grevers over 7 years ago
0
points

The most common answer to that particular validation error is that you are missing a closing tag somewhere BEFORE the line where the validator chokes. Try to find the "leaking" element and you should be on your way.

Answered over 7 years ago by Jens Hedqvist