XHTML Tutorial


XHTML References


XHTML Syntax




XHTML every tag attributes must be write in lowercase.

Incorrect Code:

<P>This is a Paragraph line.</P>
<link TYPE="TEXT/CSS" REL="STYLESHEET" HREF="jnj.css" />

XHTML correct Code

<p>This is a Paragraph line.</p>
<link type="text/css" rel="stylesheet" href="jnj.css" />

XHTML every tag attributes must be write inside double Quotation.

Incorrect Code:

<img src=../jix/html.jpg width=128 height=128 />

XHTML correct Code

<img src="../jix/html.jpg" width="128" height="128" />

<!DOCTYPE> define XHTML 1.0 Transitional

Use the transitional DOCTYPE when you want to write document in proper rules.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">