What is the difference between HTML and XHTML?
• XHTML uses well-formed XML syntax, meaning that there are some XML rules that are required in it (which is not the case in HTML). These are: • XHTML elements must be properly nested. • Element and attribute names must be in lowercase. • All XHTML elements must be closed. • Attribute values must always be enclosed in double or single quotes. • All empty tags must be self-closing (for example
). • Attribute value pairs cannot be minimized.