Home >>XHTML Tutorial >What is XHTML
XHTML stands for EXtensible Markup Language in HyperText. It is a cross between the words HTML and XML.
XHTML is almost similar to HTML but is more strict than HTML. XHTML is an XML framework, known as HTML. All major browsers backed that up.
The World Wide Web Consortium ( W3C) has created XHTML to support Web developers make the move from HTML to XML. When moving to XHTML now, web developers will join the world of XML and all its advantages, while staying sure about the content 's backward and potential compatibility.
On 26 January 2000, XHTML 1.0 became a standard of the World Wide Web Consortium (W3C). On 31 May 2001, XHTML 1.1 became a W3C Recommendation. The standard known as XHTML5 is being built as an HTML5 interface XML new adaptation.
XHTML was created to increase the extensibility of HTML and improve the interoperability with other data formats. There are two principal reasons behind XHTML creation:
Web developers and designers of web browsers are continually finding new ways to express their concepts through modern markup languages. In XML the implementation of new elements or additional entity attributes is relatively easy. The XHTML family is designed with XHTML modules and methods for designing modern XHTML-compliant modules to support such extensions. These modules provide for the combination of current and new functionality at the time of content development and new user agent design.
Let's take an example to understand it.
HTML is mainly used to build web pages but we can see that certain web pages contain "bad" HTML (not observing the HTML rule).
For most browsers this HTML code works great (even though it doesn't meet the HTML rules).
For example:
<html>
<head>
<title>This is An Example</title>
<body>
<h1>This is Heading
<p>This is First paragraph
</body>
</html>
While it does run, the above HTML code does not follow the HTML rule. Once a day, the application technologies are different. Some browsers are operating on computers, and some browsers are operating on mobile or other small devices. The key issue with the poor HTML is that the smaller computers can not read it.
Let's have a brief description of what is HTML, XML, and SGML before we go on.
What is SGML?
This is the implementation of Regular Generalized Markup Language (SGML), which complies with the International Standard ISO 8879. HTML is widely seen as the standard World Wide Web publishing language.
This is a language for representing markup languages, particularly those used in electronic document exchange, document processing, and publishing of documents. HTML is a case in point of a language specified in SGML.
What is XML? XML stands for the EXtensible Markup Language. XML is an HTML-like markup language and structured to describe the data. No predefined XML labels. You have to create your own tags to match your requirements.