html vs. xhtml

5
HTML vs. XHTML BUED 337

Upload: teagan-powers

Post on 31-Dec-2015

21 views

Category:

Documents


0 download

DESCRIPTION

HTML vs. XHTML. BUED 337. XHTML. HTML. Differences. Comparing HTML & XHTML. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: HTML vs. XHTML

HTML vs. XHTMLBUED 337

Page 2: HTML vs. XHTML

XHTML

Extensible Hypertext Markup Language

A successor to HTML 4.01

XML-compliant

W3C is improving and expanding

Page 3: HTML vs. XHTML

HTML

Hypertext Markup Language

Can handle coding errors and quirks

Integrates markup features toward modern Web usage

W3C is improving and expanding

Page 4: HTML vs. XHTML

DifferencesAspect HTML XHTML

Tag Nesting May be closed out of order

Must be closed in the order opened

Tag Case May be written in upper or lower case

Must be written in lower case

Tag Closure May be omitted for some elements

Must be matched with closing tags

Attribute-Value Pairs May occur without attribute name

Attribute-value pair required

Empty Elements Do not need to be closed Must be closed

Script and Style Elements

May be placed within quotes

Must be in separate documents and lined to XHTML document

Character Codes for Special Characters Codes recommended Codes required

Page 5: HTML vs. XHTML

Comparing HTML & XHTML

Parallel languages

W3C improving and expanding both

User preference depending on specific projects

Each has similar, distinct applications