Document Types

 

Declarations

The document declaration is the first thing that you see at the top of the html page. The document for this page is transitional, so the code placed at the top is as follows:

 

<!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">

 

Different types of declarations different types of pages including:

For additional document type declarations, go to http://www.cookwood.com/html/extras/doctypes.html, where you can obtain additional declarations that can be cut and pasted into documents.

Comments

You can put a comment in an html document. Comments can be used to give instructions to other developers or reminders about parts of a page. Insert comments in html:

<!--This is a comment. It will not show in the browser window.-->

 

WS_FTP | Doc Types | Head Element | Charset | Links | Tables | Images | CSS | Javascript | Home | Top