| First Steps Essential Tags Paragraphs/Line Breaks Center & HR Headings Font Size Creating Links Creating Lists and Nesting Tables Images Backgrounds Naming and Uploading Design Tips Authoring Guides |
While web authoring programs make learning HTML code unnecessary, completing a short exercise with the basic tags is a first step to understanding how the web editors (and the web itself) work. For more information, use the sites suggested under the last section: Authoring Guides. HTML (hypertext markup language) uses various tags to define how a page and its information appear on the Web. Think of tags as containers, displayed in angle brackets, which determine how text inside them will be displayed. Keep a simple word processor open as you read this page. You may copy and paste tags you need at the appropriate places on the page you're building. Once you've saved your HTML document, you may view it by selecting Open, then Browse (in Internet Explorer) under the File menu. All tags are hidden when the document appears on the Web. A useful tool for learning HTML is to select Source under the View menu on a Web page. You can see how tags are used on various documents. Quinsigamond
Community College | Student Writer's Web |
A. Begin by creating a folder for your web page where you will also place any graphic or other files you link to this main HTML page.
B. Next you will open a browser and word processor and download a starter page to work with.
Mac Users--see section below.
WINDOWS USERS (steps 4-8)
a. In the "Save in" box use the down arrow (at the right of the box) to
select the desktop, then the A drive for your floppy disk. (On your home computer you may
use the C drive.) Now double click the icon for the folder you created to open it.
b. In the "File name" box at the bottom of the Save As dialog box, type
this file name: index.html
c. Now click the Save command.
MAC USERS
Next, from the browser, open the file you just saved in new web folder you created. Go to the File menu and select Open Page. In the dialog box you must select the location (hard drive or floppy) and open the folder you created for the web page. Then double click the "template.html" file (or whatever you named the file) and the starter page will appear in the browser. Note that the page looks the same, but you're now viewing it from your own folder--not from the QCC server. Now return to Simple Text by clicking its window and examine source file for the web page.
C. In the word processor file, notice the structure of the page. There is a header section with a title for the browser's title bar and another title--Sample Page-- which appears after the "body" section. You're now ready to use your own titles and develop the document.
The following tags are used on any html page. Note that tags usually appear in pairs, they are enclosed in angle brackets, and the ending tag includes the forward slash. Tags may be upper or lower case.
<p></p> These tags signify the beginning and end of each paragraph. If
you have more than one paragraph in your text, you only need the end tag after the last
paragraph.
<br> This single tag creates a line break. If you wish to create a space
between lines, you need to use the paragraph tag or repeat the line break tag:
<br><br>
<center></center> These tags center both text and images.
Use the single horizontal rule tag <hr> to create simple divisions in your document. You may also control its thickness by inserting "size=n" as size 5 shown below.
<hr size=5>
In addition to thickness, you may also make the line black or colored and control the width by
using a percentage. If you want the line to appear red, size 2, and extend only 65%, type the following:
<hr size=2 width=65% color="red">
Heading tags include H1 through H6 and they determine the size of headings. <hn>...</hn>.
There are seven sizes:
<font size=n>....
Sample size 1 <font size=1>...</font>
Sample size 2 <font size=2>...</font>
Sample size 3 <font size=3>...</font>
Sample size 4 <font size=4>...</font>
Sample size 5 <font size=5>...</font>
Sample size 6 <font size=6>...</font>
Sample size 7 <font size=7>...</font>
The linking tag, <a href="the_URL">Name of Linked Document</a> allows you to create a jump to another document by clicking on the Document Name. The words you substitute for "Name of Linked Document" are all that will appear on your page as the underlined hypertext link. Be sure to copy the URL exactly and test your link.
For example, you would use the following tags to make a link to the QCC home page:
<A HREF="http://www.qcc.mass.edu">Quinsigamond Community College</A>
To facilitate reading a web document, you often want to provide a link that jumps to another part of the same page. Below is the tag you would use to jump back to the top of a page.
<A HREF="#Top of page">Top of page</A> Place this
anchor link tag at the spot where you wish to "jump" Top of page.
<A NAME="Top of page"></A> Place this (hidden) anchor point tag
at the top of the page.
These tags may also be used for explanatory information at the end of a document or to jump to various sections of a long document. Simply substitute another term for top of page in each link.
Two ways of making lists are using tags for unordered lists and ordered lists.
In an unordered list you indent and place a bullet at the beginning of each line of the
list.
If you write the following HTML:
The result in the browser will be:
In an ordered list, you indent and place a number at the beginning of each line of the list:
If you write the following HTML:
The result in the browser will be:
A third way to list is the definition list for a glossary of terms. First write the term <dt>, then the definition of the term <dd>. For example, if you write the following HTML
You will see this result on a browser page:
Be aware that the spacing and indenting in the HTML is used here to easily view the tags but is not needed. You may combine or nest the listing tags for various results. Here is one example:
Tables are an effective way to organize and display information on your page. The entire table must be surrounded by these tags: <table> . . . </table>
Next you may use the caption tag, which is optional: <caption> . . . </caption>
Next create rows with <tr> . . . </tr> tags.
Within each row you can have any number of cells marked by the <td> . . .
</td>
or <th> . . . </th> tags. (The th makes the data bold and centered.)
--You may also use a border around your table with the following initial tag:
<table border=3> (Increase or decrease the number to change the border thickness.)
<table border=4><caption>Assignment
Schedule</caption>
<tr><td>Week One<td>Chapter One</td></tr>
<tr>Week Two<td>Chapter Two</td>
</table>
To display the following table:
| Week One | Chapter One |
| Week Two | Chapter Two |
You may also combine tags within the table to create links (see Links within document) to parts of your page.
<table border=2>
<td><A HREF="#syl">Syllabi<td><A HREF="#hours">Office Hours</A></table>
<A NAME="syl"></A> and <A NAME="hours"></A>
The table with anchor links above would appear like this in the browser:
| Syllabi | Office Hours |
To use a GIF formated image on your page use the image tag, <img src="the_image.gif">
If your GIF image has the file name "email.gif" use the following tag to show the image:
<img src="email.gif">
The result will be:
The text appears in the
middle.
View sample web images and learn how to copy and save them.
Use backgrounds to add color, texture, or depth to your page. Remember, you may need to change the text color to make it visible on a dark background. Also, colors may not appear the same on different browers and different monitors.
You may simply write some names of colors rather than the numbers, including white, black, red, yellow, blue, green, purple, brown.
<BODY bgcolor="#FFFFFF">
<BODY bgcolor="#000000">
<body text="#FFFFFF">
<body bgcolor="blue" text="white" link="white" vlink="gold">
<BODY BACKGROUND="name.gif">
View sample GIF and JPEG backgrounds which you may save and use.
It's best to keep file names lower case and remember to use the extension the browser recognizes (see your browser Preferences) including .htm or .html for html documents, .gif or .jpg for graphics. Keep in mind that some of your audience may not have access to the software for sound and movie files.
If you wish to convert a document that's already been saved in a word processor, and you don't have the "save as html" feature in the software, first resave your file as a plain text document. Choose "text only" or "ASCII text" as the format in your word processor.
To publish your work, see Uploading Files.
December, John. Web Development. December Communications. April 2007. <http://www.december.com/web/develop.html>
HTML Home Page. World Wide Web Consortium. Feb. 2003. <http://www.w3.org/MarkUp/>
Lynch, Patrick, and Sarah Horton. Web Style Guide, 2nd Edition. Nov. 2002. Updated July 2005. <http://www.webstyleguide.com/>
Nielsen, Jakob. Writing for the Web. Sun Microsystems. 1994-2003. <http://www.sun.com/980713/webwriting/>
Raggett, Dave. Adding a Touch of
Style World Wide Web Consortium. 8 April 2002.
<http://www.w3.org/MarkUp/Guide/Style.html>
A short guide to using Cascading Style Sheets and
HTML alternatives to avoid problems caused by differences between brands and
versions of browsers.
Web Authoring Software