Web Design / HTML

  1. Home
  2. Computing & Technology
  3. Web Design / HTML

Create a New Web Page Using Notepad

By Jennifer Kyrnin, About.com

4 of 9

Start Your Web Page

Start Your Web Page

Start Your Web Page

Jennifer Kyrnin

DOCTYPE

The first thing you should type in your HTML document is the DOCTYPE. This tells the browsers what type of HTML to expect. For this Web site, we're going to write it in transitional XHTML, so use the following DOCTYPE:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

Just type that in exactly as the code sample reads. If you want to learn more about DOCTYPE, there are several articles about DOCTYPE on this site for more information.

HTML

Once you have the DOCTYPE, you can start your HTML with the <html> </html> element. Type both the beginning tag and the end tag and leave some space for your Web page contents, as in the picture.

<html>

</html>

Explore Web Design / HTML

About.com Special Features

Web Design / HTML

  1. Home
  2. Computing & Technology
  3. Web Design / HTML
  4. HTML and XHTML
  5. Beginning HTML Tutorials
  6. Create a New Web Page Using Notepad

©2009 About.com, a part of The New York Times Company.

All rights reserved.