Free since 2005 · No login required
AT

Academic Tutorials

Learn at your own pace

site-mobile-top-banner · 320x50

Add Document Type Definitions to Better Define Your Document

Added 31 Jul 2008

Use a document type definition (DTD) at the beginning of your Web pages. DTDs are recognized by Web page validation tools as well as by Web browsers and assistive technologies. When you explain exactly what type of document your Web server is serving, the user’s browsing technologies will be able to present that document in the most effective manner.

You can create a custom template that contains the DTD, so every document you create from that template will include the DTD. To do so:

  1.   In FrontPage, open a new page.

  2.  Switch to HTML view.

  3. Place your cursor at the top left corner of the HTML page, in front of the tag. 

  4. Type the document type definition you want to use.  You can use a custom one or one used in the samples below, such as:

    "http://www.w3.org/TR/REC-html40/loose.dtd">

  5. Choose File and Save As.

  6. In the File Name field, type the name you want to use for your template-for example, DocTypeFrames.

  7.  In the Save As Template dialog box, add or change the Title, Name, and Description fields as appropriate. You may want to leave "Save Template in Current Web" selected. This creates a shared template that downloads into the custom templates directory for a person's profile. Every person who opens this Web will get this shared template automatically downloaded to his or her local machine. If someone wanted to share a template with its DTD, this is one way to do it.

  8.  Click OK.