14.10.17

XHTML Syntax


   An XHTML document consists of three main parts:
                    1.DOCTYPE declaration
                    2.<head> section
                    3.<body>section
   
   The basic document structure  is:

<!DOCTYPE...>
<html>
<head>
<title>....</title>
</head>
<body>
..........
..........
..........
</body>
</html>

  The DOCTYPE declaration should be as given below

<!DOCTYPE html PUBLIC "-W3C//DTD XHTML 1.0 Transistional//EN"
"http://www.learnhtmeasyl.blogspot.com/TR/xhtml/DTD/xhtml11.dtd">

 The DOCTYPE specifies the document type.The document type is specified by the Document Type Definition(DTD).The XHTML syntax rules are specified by the file xhtml11.dtd.file.hence we are specifying the name of this file at the begining.

Three Flavours of XHTML

   There are three types of XHTML DTDs and those along with their uses are as given below

   1.XHTML 1.0 Strict:when we want a clean markup code then this type of dtd is used.

  2.XHTML 1.0 Transistional:when we want to use some html features in the existing XHTML document.

 3.XHTML 1.0 Frameset:when want to make use of frames in the XHTML document.


No comments:

Post a Comment

Featured Post