How+To+Group+3

=HTML VS XHTML=

Summary
In web designing, it’s crucial to understand the differences in languages. For example, HTML and XHTML have many things in common, but there are rules that change. In HTML, tags can be nested incorrectly, some tags don’t have to be closed, tags can be written in CAPITAL letters, and values don’t have to be “quoted.” None of these are allowed in XHTML. These rules are the basic differences between coding in HTML and XHTML.

**Examples of tag changes**
1. HTML: , XHTML: 2. HTML:, XHTML:

3. HTML: , XHTML:  4. HTML:, XHTML:  5. HTML:  text, XHTML:  text  6. HTML:, XHTML: 7. HTML:, XHTML:  8. HTML: , XHTML:  9. HTML: , XHTML: 10.HTML:, XHTML:

Examples of coding changes in XHTML
1. <!DOCTYPE…> must be enter before the tag 2.  instead of just 3. In XHTML Strict, depreciated tags can’t be use unless in CSS; however, you can still control some style elements such as height and width within tags such as:  4. text<ul><li>text</li></ul></li></ol> instead of forgetting the last </li> and just closing with </ol>, which is improper nesting 5. In XHTML Strict, all empty tags must be written within other tags such as:

**Resources**
1. [|__http://www.w3schools.com/__] 2. [|__http://validator.w3.org/__] 3. [|__http://jessey.net/simon/xhtml_tutorial/__]