Title: HTML validation. Problem with id name.
Last modified: August 19, 2016

---

# HTML validation. Problem with id name.

 *  [gorkreg](https://wordpress.org/support/users/gorkreg/)
 * (@gorkreg)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/html-validation-problem-with-id-name/)
 * I have a problem with the html validation. WordPress gives an id name to every
   single post that starts with a number:
    ** _“<div class=”post” id=”84″>”_
 * Apparently, the id name MUST begin with a letter, not a number:
 * **_“It is possible that you violated the naming convention for this attribute.
   For example, id and name attributes must begin with a letter, not a digit.”_**
 * Any tips on how to fix this?

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

 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/html-validation-problem-with-id-name/#post-1286782)
 * it’s actually not wordpress doing this – it is your theme’s author who messed
   this up.
 * open index.php (and probably single.php, and maybe archive.php, category.php ….)
   and search for `<div class="post" id="<?php the_ID(); ?>` –
 * then directly after id=” insert a letter; sorted 😉
 *  Thread Starter [gorkreg](https://wordpress.org/support/users/gorkreg/)
 * (@gorkreg)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/html-validation-problem-with-id-name/#post-1286844)
 * Thanks alchymyth. I changed what you said and it works. Why I didn’t think about
   it before, I don’t know.
 * The theme’s author who messed up it’s actually me 😉 But it’s my first time trying
   this so I guess I learned something there.
 * Thanks again!

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

The topic ‘HTML validation. Problem with id name.’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [gorkreg](https://wordpress.org/support/users/gorkreg/)
 * Last activity: [16 years, 5 months ago](https://wordpress.org/support/topic/html-validation-problem-with-id-name/#post-1286844)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
