XHTML Quick-Reference
XHTML is HTML with a few simple rules. Follow these, and you'll be creating XHTML of your very own!
But also,
This can be done like so:
1. You need Doctypes and other header garbage!
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
2. Tags and attributes must be lower case!
<BODY> bad
<body> good!
3. All attributes must be quoted!
<a href=skull.html> bad
<a href="skull.html"> good!
4. All tags must close!
Obviously tags like<p>, <td>, and <i> must be properly closed.But also,
<br>, <hr>, and <img> must be closed!This can be done like so:
<br />, <hr />, and <img />
5. Watch Your Containers
- Form tags cannot hold bare content such as text, input tags, etc. You must insert a container such as a
divor apinside the form tag which holds the rest of the content. - Paragraph tags cannot contain lists such as
ulorol. - There are others, so stay on your toes and keep checking your pages with the validator below.

