Home >>XHTML Tutorial >What is XHTML

What is XHTML

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.

History

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.

Why Use XHTML?

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:

  • XHTML documents conform to XML as they are easily accessed, edited and validated using regular XML tools.
  • XHTML documents may be written to function differently than they used to in existing browsers and in new browsers.
  • XHTML documents may include applications that depend on either the HTML Document Object Model or the XML Document Object Model, such as scripts and applets.
  • XHTML provides you with a more consistent, well-structured format, such that present and future web browsers can quickly read and view the web pages.
  • In the long run, it's simple to manage, edit, convert and format your document.
  • Since XHTML is an accepted W3C standard, the website is more compliant with other browsers, with more reliable rendering.
  • XHTML combines an HTML and XML strength. Also, all XML compatible browsers can make XHTML pages.
  • XHTML determines the quality level for your web pages and if you meet it, only your web pages can be classified as web pages of quality. Those pages are accredited by W3C with their quality stamp.

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.

Basic Understanding

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.


No Sidebar ads