Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm just learning HTML, but some say XHTML is better. The W3C recommends XHTML, and I know W3C is more credible, right?

share|improve this question

closed as not constructive by MichaelT, gnat, Bart van Ingen Schenau, thorsten müller, Martijn Pieters Apr 13 '13 at 11:52

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.If this question can be reworded to fit the rules in the help center, please edit the question.

I found this useful in deciding which one to use. – dietbuddha Mar 25 '11 at 5:15
HTML rules, the rest markup are just syntactic sugar :) – ierax Mar 25 '11 at 13:29
XHTML is dead, and HTML is now a rolling standard including all previous HTML "5" features. – Josh K Mar 25 '11 at 17:51
The W3C does not recommend XHTML. Your information is years out of date. – user16764 Apr 13 '13 at 2:17
what you should learn next is off-topic per faq – gnat Apr 13 '13 at 4:49

XHTML was a reformulation of HTML using XML semantics (i.e., allow an "HTML" document to be treated as XML). This had the potential for many things, such as incorporating MathML (a math-oriented markup language) in an web page. Like many trendy things, it became popular, but never really that useful (for example, many servers still served XHTML documents as HTML for Internet Explorer, which didn't understand XHTML, thereby negating the benefits of XHTML). A few years ago, the W3C began work on new versions of both HTML and XHTML. The XHTML working group was eventually scrapped, which tells you something about the future of XHTML (although XHTML5 is still undergoing work I believe).

In short, it's probably best to focus on HTML.

That said, it doesn't really matter; major browsers will understand XHTML (especially if you just serve it as text/html), and XHTML isn't that dramatically different from HTML (unless you're doing "advanced" things, like incorporating MathML markup).

share|improve this answer

I'm not sure where you got that the "W3C Recommends XHTML" over HTML—while that may have been true at one point, it definitely hasn't been the case since they closed down the XHTML2 Working Group last December.

XHTML 1.1 and 2 are both dead-ends and not worth your attention.

XHTML 1.0 was just a reformulation of HTML4 in XML, in the same way that XHTML5 is just a reformulation of HTML5 in XML.

Whether you choose HTML5 or XHTML5 is pretty much a matter of personal preference at this point—neither is more up to date or advanced than the other.

share|improve this answer

Of course XHTML provides some advance features. But you should start with HTML and XML as they are easy to learn and understand as compared with XHTML. After being comfortable with HTML and XML you can easily go for XHTML.

share|improve this answer

HTML is standard, XHTML is old XML based anachronism...

Since you are begginer good start at learning HTML would be to analyse existing Web pages around the web, by either using web dev tools inside browsers or some web-app that let's you analyse layout of a web-page and all HTML tags on it like for instance ....

be persistent and results will come

share|improve this answer