| XHTML documents are plain-text files that can be created using any text editor. An element is a fundamental component of the structure of a text document. Each element(tag) is enclosed in brackets with a closing tag.
|
Open and Close Elements | Description |
| ALL tags must be enclosed with Left and Right Brackets < >. Tags are not case sensitive but it's best to use lowercase. |
| XHTML Declaration | <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/DTD/xhtml1/xhtml1-transitonal.dtd"> |
| <html>.. </html> | All xhtml documents start and end with this tag. |
| <head>.. </head> | Head holds descriptive information about the page that browsers and search engines use. |
| <title>.. </title> | Display this text on the browser's title bar, should be same as the page title. |
| <body>.. </body> | Text, images, links and other information for the viewer |
| see XHTML Rules |
|
|
<!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><title>Basic HTML Structure</title>
</head>
<body>
<h1> Plants in the Garden </h1>
<p> Text and images displayed in the body. </p>
</body>
</html> |
Save file as text format with the extension dot.html( plants.html ) |