Title: HTML Validation Errors
Last modified: August 19, 2016

---

# HTML Validation Errors

 *  [cableghost](https://wordpress.org/support/users/cableghost/)
 * (@cableghost)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/html-validation-errors/)
 * How many validation errors are acceptable, or is it a matter of what error it
   is?
 * Here is a validation error report, I’m wondering if there’s some errors more 
   important to handle than others.
 * [http://www.9001sites.com/temp/validerrors.pdf](http://www.9001sites.com/temp/validerrors.pdf)
 * Thanks.
 * -Scott

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [stvwlf](https://wordpress.org/support/users/stvwlf/)
 * (@stvwlf)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/html-validation-errors/#post-1084988)
 * Its not a question of how many tags are acceptable, its what is the nature of
   the errors. To be really technical, no errors are acceptable. On the other hand
   some kinds of errors don’t really affect how your page renders.
 * Looking at yours, at the minimum clean up the tag mismatch errors. Those are 
   broken HTML structure and can cause problems in browsers like IE. The same for
   end tags for elements that are not open, and ID already defined. an ID can only
   occur once per page. If an ID needs to be used more than once on a page make 
   it a class not an ID.
 * Its easy enough to add an empty alt=”” for a missing alt attribute, to change
   onClick to onclick, to close an img tag with `/>` instead of `>` Align attribute
   on img is deprecated, better to use CSS.
 *  Thread Starter [cableghost](https://wordpress.org/support/users/cableghost/)
 * (@cableghost)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/html-validation-errors/#post-1085098)
 * Thank you for your input, very interesting and will prove helpful.
 * The validation process would incorrectly mark some tags wrong…like <div class
   =”something”>. This would give a validation error.
 * From what I could see, most of the ID errors were not errors at all…they were
   not missed pid, they were really ID’s.
 * Image closing…should I use /> even if the full address link is given?
 * -Scott
 *  [stvwlf](https://wordpress.org/support/users/stvwlf/)
 * (@stvwlf)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/html-validation-errors/#post-1085120)
 * in XHTML all tags that don’t have separate closing tags ( like `<p></p>` ) must
   be closed with `/>` examples – `<br /> <img />`
 * `<div class="something">` is not going to give a validation error since it is
   valid code. What may not be valid is the match between the opening and closing
   div tags, and that is what can throw a browser (IE) off
 *     ```
       <div id="one">
         <div id="two">
           <p>text here</div>
           <p> more text here</p>
         </div>
       </div>
       ```
   
 * There are 2 opening div tags, 3 closing div tags, 2 opening p tags, one closing
   p tag. That is mismatched code, and that is what the validator points out to 
   you.
    My example is trivial and minor, but when you get 25 mismatched tags, often
   the browser is not going to display the page the way you want it to. Then, instead
   of fixing the underlying problems, people tend to create a workaround around 
   the specific element that’s not displaying correctly, making increasingly complicated
   code.
 *  Thread Starter [cableghost](https://wordpress.org/support/users/cableghost/)
 * (@cableghost)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/html-validation-errors/#post-1085125)
 * Thank you. I will give closer examination.
 * -Scott

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘HTML Validation Errors’ is closed to new replies.

## Tags

 * [errors](https://wordpress.org/support/topic-tag/errors/)
 * [validation](https://wordpress.org/support/topic-tag/validation/)
 * [W3C](https://wordpress.org/support/topic-tag/w3c/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [cableghost](https://wordpress.org/support/users/cableghost/)
 * Last activity: [16 years, 11 months ago](https://wordpress.org/support/topic/html-validation-errors/#post-1085125)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
