Skip Navigation
IT Connect
Connecting You to Information Technology at the UW

 

Writing Your Own Web Pages In HTML

IT Connect > Web > Publishing > Writing HTML

Web pages are typically written in HTML (Hypertext Markup Language). HTML can be written by hand or with the help of a tool known as a HTML authoring tool. This article briefly describes HTML and the various ways to author Web pages.

What Is HTML?

HTML (Hypertext Markup Language) is the language used to create and link together Web pages. HTML defines a set of elements, known as tags, which describe the structure and format of Web pages. These tags markup HTML files, thereby defining such things as paragraphs, headlines, hyperlinks, as well as bold, italic, or emphasized text. When you open a Web page with a browser, the tags are interpreted to produce what you see or hear.

Here is an example paragraph, written in HTML, with some emphasized text:

<p>Geez, this doesn't look so hard.
Now I <strong>really</strong> want to
learn HTML.</p>

The <p></p> and <strong></strong> tags help define the boundaries of the paragraph and strong text, respectively. It is up to a Web browser to decide how to handle this paragraph. Most likely the word "really" will be emphasized through bolding or some other means.

Writing HTML on Your Desktop Computer

To write HTML on your desktop computer, all you need is a simple text-editing program:

The procedure is straightforward:

  1. StepsActions
  2. Start your text editor.
  3. Create/Edit as needed.
  4. Save your work to your hard drive.
  5. Save files with a .html extension.
  6. Preview your work with your Web browser.
  7. When ready, move pages to your Web directory.

There are several text editors available that display HTML tags in color. This makes editing HTML much easier. Among these applications are:

Writing HTML on Dante or Homer

Dante and Homer have Web development environments you can use to create and edit your Web pages within your Web directory. With a working knowledge of HTML, a text editor such as Pico, and a few Unix commands, you can maintain your Web site without having to move files from your desktop computer. To do so:

  1. StepsActions
  2. Log into your web development host using a terminal emulator. Not sure how to do this? Click here for directions.

  3. At the prompt, enter the following command to change into your Web directory:

    cd public_html
  4. You can now use Unix commands to create and edit your Web pages. For example, the following command opens your home page for editing with the Pico text editor:

    pico index.html

    To quit Pico and save your work, type ctrl x.

See Getting Started with Unix for help with Unix commands such as these.

Linking Between Pages

Whether you are using an HTML authoring tool or not, there are some general guidelines to use when linking between Web pages.

To link between your own Web pages, insert hyperlinks using relative target addresses:

<a href="info.html">read my info page!</a>

To link to other Web sites and Web pages owned by others, insert hyperlinks using full target addresses:

<a href="http://www.washington.edu">UW Home Page</a>

Resources and Training

HTML References:

HTML Training Available on Campus: