Valid XHTML
Below are rules for a valid XHTML document
- XHTML pages must have a Document Type Definition (DTD).
- All tags need to be lowercase (e.g., no caps).
- You must close all tags (e.g., if you use the <p> tag, you must use the </p> tag at the end of the paragraph).
- Alternatively, if you are using a tag such as <br> or <p>, then you can simply write <br/>, or <p/> to terminate them.
- If you yuse an attribute to a tag, the value must be in all quotation marks (e.g., src="image.jpg", not src=image.jpg).
- You can next tags. However, XHTML does not forgive improper nesting (e.g., use <b><i>text</i></b>, not <b><i>text</b></i>).
You will learn more about XHTML throughout this course.
You will learn more about standard HTML 4.01, as well