A brief introduction to HTML
|
XHTML 1.0
- If you want to use XHTML 1.0, you need
exactly this at the beginning of your document:
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html
xmlns="http://www.w3.org/1999/xhtml">
- Obviously, you still need </html> at
the very end...
-
In XHTML 1.0
- attribute and tag names must always be in lower
case
- attribute must always be quoted.
- empty tags do have to have the trailing slash
- Apart from that, they are the same.