Posted by: agustinch | December 6, 2008

HTML and XHTML

I am sure that everyone have done something in HTML, XML or XHTML or at least hear about it. But, what’s the difference between them? Well, XHTML combines the flexibility of HTML with the extensibility of XML. The most important difference, If you ever worked with HTML, you will now that tags will never look the same in different browsers, the only solutions that an HTML writer has are: not use those tags, use those tags and state that the page is meant for one browser or another, or write multiple pages and use scripting techniques to direct readers to the appropriate pages. With XHTML this is not necessary since you can simply define it in an XHTML module and use it in your page as you would any other HTML tag.

Sources:
Differences Between HTML and XHTML
XHTML Valid
HTML Versus XHTML


Responses

  1. You can never make assumptions, I have never used HTML. I never thought about it not being compatible. What did people do before XHTML? Did they have to write several versions?

  2. Obviously not, that’s why I said at least heard about it. Read what I wrote again and maybe you will understand what I said. HTML is older than XHTML, of course.

  3. I think xhtml is better then the old html i hope that we get to learn this later down the line in our programming so that i can get the feel for it wish i knew about it sooner lol


Leave a response

Your response:

Categories