Please can someone explain what is the difference between html and xhtml? Also which is the best to use in which situation? Thanks
This page explains it better than I could, http://www.webstandards.org/learn/articles/askw3c/oct2003/ Another good read is this page: http://www.robertnyman.com/2005/11/02/html-or-xhtml/ I always go for XHTML, just a preference, I find it cleaner and cross-browser compatible.
IMO, after reading up on them first of course, you should always choose XHTML out of the two these days!
They both are exactly the same, the only difference between them is x, i don't think there is any other difference there.
No they are not the same. HTML is more tolerant of errors. For the definitive guide check the standards at W3C. The XHTML homepage defines HTML as; and XHTML as: For new websites I would reccommend using XHTML without a doubt, indeed I always use the STRICT version as opposed to the transitional, this is less tolerant of errors and relies upon good use of CSS.