hey guys i need to know what is the difference between html and x html but plz in detail thanx regards hamidos
I think you will find all you need at w3.org. Once you gain a knowledge base, specific questions can be Googled, then brought to a forum for further clarification. Do learn to read the specs, else you might not be able to rise above the level of a copy and paste amateur. cheers, gary
Basically it's HTML that uses XML syntax. For one major difference, XHTML tags MUST be lowercase. On the first page of results in Google when searching HTML vs XHTML: http://www.outer-court.com/tech/tutorials/html-vs-xhtml/ Edit: Didn't mean to step on your toes Gary, your post wasn't there when I clicked Reply.
HTML stands for HyperText Markup Language, XHTML stands for Extensible HyperText Markup Language. XHTML is generally considered to be the successor to HTML. Many people think of XHTML as the current version of HTML, but it is not. It is simply a seperate, alternative recommendation from the W3C. XHTML is very similar to HTML but it has a much stricter syntax. Generally, XHTML can be thought of as a combination of HTML and XML. Here's basically what you need to know about the differences between HTML and XHTML... 1. XHTML has a very strict syntax, HTML does not. For example, this code... <p>This is paragraph 1.<p>This is paragraph 2. is correct in HTML, but not in XHTML. XHTML requires the closing </p> tags. <p>This is paragraph 1.</p><p>This is paragraph 2.</p> would be correct in XHTML. 2. In XHTML, all element and attribute names must be in lower case, unlike in HTML where they can be in any case. 3. In XHTML, all non-empty elements must have ending tags, unlike in HTML where some elements don't need them. Incorrect: <p>This is a test paragraph. Correct: <p>This is a test paragraph.</p> 4. In XHTML, attribute values must always be quoted, unlike in HTML where they don't need to be. Incorrect: <table width=400> Correct: <table width="400"> 5. In XHTML, all attributes must be written in complete name-value pairs, unlike in HTML where certain attributes can be minimized. Incorrect: <input type="checkbox" checked> Correct: <input type="checkbox" checked="checked" /> 6. In XHTML, all empty elements must have ending tags, unlike in HTML where they don't need them. Incorrect: <br> Correct: <br /> 7. In XHTML, you must wrap your internal javascript and css in a CDATA section like so... <script type="text/javascript"> <![CDATA[ ... your script goes here ... ]]> </script> If you are using external javascript or css style sheets, you don't need to do this. 8. In XHTML, when making forms all your input element types must be in lowercase as well. Incorrect: <input type="TEXT"> Correct: <input type="text" /> That's about all I can think of right now. Hope this helps