In this post, we will discuss What is XHTML. Also, you can check out my previous posts on:
“XHTML” stands for Extensible Hyper-Text Markup Language. This is considered as the extended version of Hypertext Markup Language (HTML) that has been modified to be valid XML. XHTML is an XML format. This language is well structured and is parsed by the XML parser. The implementation is purely based on its syntax rules.
The features of XHTML are given below:
-> It requires every tag to have corresponding closing tags.
-> It is case sensitive.
-> It requires all web pages to contain the<html>,<head>,<body> elements and the DOCTYPE declarations.
-> It requires that all attributes be enclosed in quotation marks and includes a space between each attribute
width =”100″ height=”50″ (valid)
-> Double dashes (–) are not allowed within comments
-> CSS (Cascading Style Sheets) rules apply only to documents that are delivered as text/html in XHTML.
-> It uses & instead of ampersand (even in hyperlinks) and always use < and > instead of less-than and greater-than symbols in your text.
-> The web pages written in XHTML are rendered properly in almost all browsers.