This introduction is for the beginners and it explains the basics about XHTML and HTML.
XHTML stands for EXtensible HyperText Markup Language, and it is almost identical to HTML 4.01, but it is a stricter and cleaner version. XHTML is HTML defined as an XML application and it is supported by all major browsers. |
Many pages on the Internet contain "bad" HTML. The following HTML code will work fine if you view it in a browser (even if it does NOT follow the HTML rules): <html> <head> <title>This is bad HTML</title> <body> <h1>Bad HTML <p>This is a paragraph </body> But, today's market consists of different browser technologies. Some browsers run on computers, and some browsers run on mobile phones or other small devices. Smaller devices often lack the resources or power to interpret a "bad" markup language. Therefore - by combining the strengths of HTML and XML, XHTML was developed. XHTML is HTML redesigned as XML. XML is a markup language where documents must be marked up correctly and "well-formed". |
Document Structure
XHTML Elements
XHTML documents must have one root element. XHTML Attributes
|
See also