i Need to know about x html

Discussion in 'HTML & Website Design' started by Digital Artist, Mar 30, 2006.

  1. #1
    hey guys i need to know what is the difference between html and x html
    but plz in detail
    thanx regards
    hamidos:)
     
    Digital Artist, Mar 30, 2006 IP
  2. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #2
    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
     
    kk5st, Mar 30, 2006 IP
  3. Kat2

    Kat2 Well-Known Member

    Messages:
    143
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    108
    #3
    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.
     
    Kat2, Mar 30, 2006 IP
  4. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #4
    Kat2: No problema. One needs only to look at the time ticks to know what happened. ;)

    cheers,

    gary
     
    kk5st, Mar 30, 2006 IP
  5. jhonson

    jhonson Peon

    Messages:
    59
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    jhonson, Apr 3, 2006 IP
  6. Digital Artist

    Digital Artist Active Member

    Messages:
    562
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    60
    #6
    hi thanx for the help
    realy i learn alot from DP forum all guys are very corporative
    thanx again
     
    Digital Artist, Apr 7, 2006 IP
  7. brian394

    brian394 Well-Known Member

    Messages:
    226
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    108
    #7
    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 :)
     
    brian394, Apr 8, 2006 IP