• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 2. Making a Web Page with HTML > The document type definition

The document type definition

The first thing your page needs is the opening document type definition (DTD) and HTML tags. These tags tell the browser what type of HTML document you are sending it. There have been several versions of HTML, and telling the browser which version you're using helps the browser display it correctly. This example is from a page that is using XHTML 1.0 Transitional, a modified version of HTML 4.01:

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

					  


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint