Generally, one of the annoying features of the popular blogging platform WordPress, is its automatic correction and presumed way of editing the HTML code you insert in creating your posts. For instance if you place a <br> tag in your HTML code, WordPress will then try to replace it with the <p> tag. Worse is that it sometimes add the closing tag, </p>, in the end of already closed tags with no substantial reasons when in fact you have already written the code correctly.
The WordPress functions wpautop (which handles the automatic insertion of the paragraph or <p> tags) and the wptexturize (adds curly quotes and sometimes changes symbols in order to make it look “prettier” which later causes your output to behave unsually). If you are a person who often checks your site with the W3C's Markup and CSS standards, then those two functions will make your way a little bit harder in complying with those standards. So what can you do to avoid those unusual effects of the functions? One solution perhaps is to disable the two functions. This could be a harsh way but this will also yield better benefits on your part. The solution is here.
Open your theme's function.php file, and simply insert the follwing code between (or inside) <?php and ?>:
//disable auto p
remove_filter ('the_content', 'wpautop');
//disable wptexturize
remove_filter('the_content', 'wptexturize');
That's it! I hope you find this helpful.

27 Popular and Most Played Role-Playing Games
Top 100 XBOX 360 Games
100+ Stunningly Beautiful Space Wallpapers
80 Ultimately Beautiful Macro Photography Shots
70 Most Downloaded FREE Wordpress Themes
How to Improve Website's Security Using .htaccess
55 FREE and Extraordinary Gothic Fonts
FREE and Premium Formal Script Fonts
Separating Comments and Trackbacks
Top 10 Alien Photo Manipulation Tutorials
The Ultimate Online Color Tools for Web Designers
40 Best Online Photo Editors
42 Photoshop Grunge Brush Sets
65 High Quality Apple Computer Wallpapers
Latest iPods: Unleash the Power of Music!
550+ Astounding Apple iPhone Wallpapers
11 Useful Video Tutorials on iPhone 3G/3GS
Beautiful Social Networking Icons
55 Cool and Free Social Media Network Icon Packs
480+ FREE and Fresh Twitter Icons
I agree with that, I have experienced that too. That auto-correction also makes me confuse on my code.