XHTML Tutorial And Reference

Last Updated on: December 20, 2014   Posted By: Web Design Reference

Learn XHTML With Easy Demo and Examples.

Html :- Html is a basic markup language designed for developing web pages. Html stands for Hyper Text Markup Language is used for design a basic web page.

HTML use different types of tags for describing content in a html document. Simply we can say that the html tags describes the document content of page.

XHtml :-XHTML( EXtensible HyperText Markup Language) is markup language which is written as xml(Extensible Mark language).

Some New Features of Xhtml are:

  • Stricter : It is a stricter version because elements should be properly nested and in lower case.
  • Cleaner : It is a cleaner version because it not contain wrong or bad Html.
  • Doctype Mandatory : In a Xhtml document Xhtml doctype is compulsory.
  • Lower Case Mandatory :In a Xhtml document all element always be in lower case.
  • Quoted Mandatory : In a Xhtml document vlaues of an element must be quoted.
  • XMLNS Mandatory : In a Xhtml document XMLNS(Extensible Markup Language Name Space) is mandatory.
  • HTML Basic Tags Mandatory : In a Xhtml document Some Basic tags are mandatory( <html>, <head>, <title>, <body> tags).
  • Properly Nested Elements : In a Xhtml document all elements always be in nested form.

Example : A Minimal XHTML document

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml”>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″ />
<title> My First Web page </title>
</head>
<body>
<h1> Heading of Page </h1>
<p> It is a Xhtml Document. </p>
</body>
</html>
 

Leave a Reply