Sei sulla pagina 1di 4

1

Dynamic Web Applications with PHP


and MySQL
by Simon Stobart and David Parsons

XML & XSLT
Quick Comparison
HTML
- uses tags and attributes
-
- - tags and attributes are pre-
determined and rigid

- content and formatting
can be placed together
<p><font=Arial>text</font>

XML
- uses tags and attributes

- allows user to specify
what each tag and
attribute means

- content and format are
separate; formatting is
contained in a stylesheet


HTML and XML
HTML and XML look similar, because they are both
SGML languages (SGML = Standard Generalized
Markup Language)
HTML and XML
HTML is for humans
HTML describes web pages
You dont want to see error messages about the web
pages you visit
Browsers ignore and/or correct as many HTML errors
as they can.
XML is for computers
XML describes data
The rules are strict and errors are not allowed
Current versions of most browsers can display XML

Potrebbero piacerti anche