Com DTD como validar XHTML
|
Um original de XHTML � validado de encontro a um Document type definition (DTD). Um DTD apropriado deve ser adicionado como a primeira linha da lima, antes de validar corretamente uma lima de XHTML.
O DTD estrito inclui todos os elementos non-deprecados e atributos ou aqueles que o donot parece nos framesets:
!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
|
The Transitional DTDcontains everything which the strict DTD includes
plus deprecated elements and attributes:
!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
|
The Frameset DTD includes frames and all the
other things which are included in transitional DTD:
!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Frameset//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"
|
This is a simple XHTML document:
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" >
<html>
<head>
<title>simple document</title>
</head>
<body>
<p>a simple paragraph</p>
</body>
</html>
|
Keywords: xhtml tutorial, xhtml validator, html xhtml, tag com xhtml, xhtml editor,xhtml templates,
xhtml 1.0, xhtml code, xhtml doctype, xhtml validation
|