Title: Valid XHTML?
Last modified: August 18, 2016

---

# Valid XHTML?

 *  [robinalex](https://wordpress.org/support/users/robinalex/)
 * (@robinalex)
 * [21 years, 11 months ago](https://wordpress.org/support/topic/valid-xhtml-1/)
 * Hi all, first of all, I’d like to say how great wordpress and their users are
   😀
    That being said, I wanted to discuss a small problem I’ve been having. I 
   keep getting a non-valid xhtml result page from the w3 validator. I’ve been trying
   to center images primarily, and I tried both <center> and <div align=”center”
   >, but w3 says that that’s not allowed for both of them. Here’s a look at the
   w3 page: [http://validator.w3.org/check?uri=http%3A%2F%2Frobinalex.ceejaycee.net%2F](http://validator.w3.org/check?uri=http%3A%2F%2Frobinalex.ceejaycee.net%2F)
   Anyone know any other methods that ARE xhtml valid? Thanks in advance 🙂 -Robin
   Alex [http://robinalex.ceejaycee.net/](http://robinalex.ceejaycee.net/)

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

 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [21 years, 11 months ago](https://wordpress.org/support/topic/valid-xhtml-1/#post-66730)
 * In css:
    .cent { text-align: center; } In post <div class=”cent”> blah blah </
   div> 🙂
 *  Thread Starter [robinalex](https://wordpress.org/support/users/robinalex/)
 * (@robinalex)
 * [21 years, 11 months ago](https://wordpress.org/support/topic/valid-xhtml-1/#post-66731)
 * woah! thanks! really, thanks again 😀
 *  Thread Starter [robinalex](https://wordpress.org/support/users/robinalex/)
 * (@robinalex)
 * [21 years, 11 months ago](https://wordpress.org/support/topic/valid-xhtml-1/#post-66733)
 * haha, actually now it doesn’t center the image ?:\ hm.. but i’ll keep trying 
   different things. if you or anyone else has anymore suggestions, I’m more than
   willing to take em 😀
 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [21 years, 11 months ago](https://wordpress.org/support/topic/valid-xhtml-1/#post-66734)
 * You could have some conflicting css…
    If you post a picture using that css, I’ll
   have a look ?
 *  [davidchait](https://wordpress.org/support/users/davidchait/)
 * (@davidchait)
 * [21 years, 11 months ago](https://wordpress.org/support/topic/valid-xhtml-1/#post-66735)
 * Yeah. I think you can use the [center] in transitional, but you can’t necessarily
   do it INSIDE the [a href]. try centering around the entire link, see if that 
   works.
    Some things don’t come up as valid inside a link — which is ticking me
   off right now as certain styles of output from CG-Amazon aren’t validating. Too
   freaking bad. How else am I supposed to have an image and text items that all
   function as a single link?? 😉 -d
 *  Thread Starter [robinalex](https://wordpress.org/support/users/robinalex/)
 * (@robinalex)
 * [21 years, 11 months ago](https://wordpress.org/support/topic/valid-xhtml-1/#post-66737)
 * “This Page Is Valid XHTML 1.0 Transitional!”
    Yes! that did the trick, looks 
   like I had to put it outside the image AND href itself. But as you said there
   will be times when we need it to be valid from inside the link. I wonder why 
   it’s doing this .. hm… well thanks again guys, at least I got it working now 
   😀
 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [21 years, 11 months ago](https://wordpress.org/support/topic/valid-xhtml-1/#post-66738)
 * Cool 🙂
 *  [mi327](https://wordpress.org/support/users/mi327/)
 * (@mi327)
 * [20 years, 7 months ago](https://wordpress.org/support/topic/valid-xhtml-1/#post-67327)
 * My amazon plugin also does not validate my page, all of my errors have to do 
   with my amazon posts. Can anyone help?

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

The topic ‘Valid XHTML?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 8 replies
 * 4 participants
 * Last reply from: [mi327](https://wordpress.org/support/users/mi327/)
 * Last activity: [20 years, 7 months ago](https://wordpress.org/support/topic/valid-xhtml-1/#post-67327)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
