Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML

What is XHTML and do I Need to Learn It?

Any thoughts?

3 Answers

XHTML is dead, development was ended by the W3C back in 2009. However HTML5 is backward compatible with XHTML so if all you change is the doctype you will be set.

The syntax of HTML5 is actually a lot looser you can do all sorts of things that may or may not be actually be a good idea and still end up with valid HTML5 markup.

You can check out this more complete explaination in webcomic form over on smashing

Ok, so I could have researched before posting.

The W3Schools.com website has a really good explanation of the differences between XHTML and HTML.

Am I correct in assuming that XHTML is basically just well written HTML?

Thanks James!

That's good to know and thanks for the link. The webcomic was most informative!