HTMLHowTo_Group7

It can be difficult to tell the difference from HTML to XHTML at first glance. XHTML is a much more strict version of HTML. Some of the differences are small such as all the tags must be lowercase, and every tag has to be closed. There are, however, other large changes such as the fact that nothing other than layout formatting is allowed in XHTML. The advantage to using XHTML is that you know that your page will display correctly using different browsers.

Tags That Change:

1) HTML: code format="html4strict" code

XHTML: code

code

2) HTML: code  code

XHTML: code  code

3)HTML: code  code

XHTML: code 

code

4)HTML: code  code

XHTML: code  code

5)HTML: code  code

XHTML: code  code

6)HTML: code  code

XHTML: code  code

7)HTML: code code

XHTML: code  code

8)HTML: code No Doctype code

XHTML: code <!DOCTYPE html PUBLIC "-W3CDTD XHTML 1.0 StrictEN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> code

9)HTML: code code

XHTML: code code

10)HTML: code code

XHTML: code  code

Examples of code snippets that change:

1) HTML: code Whatever  code

XHTML: code Whatever code

2)HTML: code Paragraph 1 Paragraph 2 code

XHTML: code Paragraph 1 Paragraph 2 code

3)HTML: code 

code

XHTML: code  /* <![CDATA[ */ document.write("Hello World!") /* ]]> */ code

4)HTML: code Whatever code

XHTML: code Whatever code

5) HTML: code <p align='center'>Whatever code

XHTML: code <style type="text/css"> /*<![CDATA[*/ p.center {text-align: center} /*]]>*/ <p class='center'>Whatever

code

Helpful Links http://www.w3schools.com/xhtml/xhtml_intro.asp http://www.devguru.com/technologies/xhtml/QuickRef/xhtml_coding_rules.html http://personalweb.about.com/od/basichtml/a/409xhtml.htm