Browsers, Viewing Source, and HTML Tag Basics

This page is intended to be a quick summary. You should attend a class or read about these topics in your HTML book before using this page.

This page describes:

Browsers

Browsers are the programs you use to view your creations. Contemporary browsers can display: One of the first popular browsers was Mosaic. Today's most popular browsers are produced by Netscape (Navigator/Communicator) and Microsoft (Internet Explorer). By using Java, JavaScript, ActiveX, C/C++, and plug-ins, you can extent the capabilities of your browser.

Start Netscape now, and explore the menu bar, button bar, location bar, and other features.

NOTE: There are several different types of computers and operating systems. In this class, we'll work with Macintosh computers and occasionally refer to differences in the Intel-style and UNIX environments.

Viewing and Saving Source

Browsers display/present text, graphics, audio, and other files (or collections of files) as pages -- either directly from your file system or from an internet/intranet-based web server using a URL (Uniform Resource Locator).

The pages you view in your browser can be displayed or saved as "source files" in the original ascii format.

For example:

Note: In Internet Explorer on the PC it is best to view the source (this opens a Notepad window) and use "Save As" save the file from the notepad File menu to save the file.

HTML Tags

First, what is HTML?

HTML - HyperText Markup Language - consists of tags you use to specify, more or less, the format of information.

<tag> - the less than sign (<) and the greater than sign (>) are the two most used characters in many HTML documents.

Here are the tags for a very basic HTML page.

<HTML>

<HEAD>

<TITLE>Displays in the browser's top banner area.</TITLE>

</HEAD>

<BODY BGCOLOR="white">

<P>Here's where you add your message.</P>

</BODY>
</HTML>

Container Tags

Most tags contain information and must have beginning tags and ending tags. For example, to make text bold, you need the beginning ad ending tag around the text , as in: <b>Text</b>.

Empty Tags

Other tags stand alone, without containing anything, like the horizontal rule tag, <hr>:

Tag Attributes and Values

Many tags are defined by values you provide for attributes. For example, in the horizontal rule tag, <hr> if you use no attributes the line crosses the entire browser window, but if you set the size attribute to 50%, and the align attribute to "left" the line only crosses half the window, beginning on the left side, as shown here: <hr width="50%" align="left">
hr is the tag
width and align are attributes
"50%" and "left" are attribute values (notice the use of quotes - "")

Structure Tags

Some tags simply define the page itself and are called structure tags. The basic structure tags are the HTML, HEAD, TITLE, and BODY tags.

Format Tags

Some tags describe your format intent. These include Headings (<Hn>Text</Hn>), paragraph breaks (<p>), and emphasis using italics (<i>Text</i>)and bold (<b>Text</b>) tags are just a few of the tags you'll learn to use in this course.

Implicit Tags

Implicit (logical) tags let the browser to choose how the text will be displayed. Emphasis usually renders as italics.
Strong renders as bold.
Teletype is monospaced text.

Explicit Tags

Explicit tags, also called physical tags, specifically tell the browser how to display the text.

These three tags (Bold, Italic and Underline) are all explicit tags. The browser is given no choice in how they are rendered. They can be used in combination with each other.


Hands On

First, get to know your computer. Notice how the menus work for each program.

When you feel ready, you can try to use an editor (SimpleText on the Mac or Notepad on the PC) to create and save a web page you can view in a browser (Netscape or Internet Explorer).

Here are some rules intended to minimize frustration:

Ready to try?

Your page isn't on the web yet, but you have begun. See the Text Tag Notes for more information.


to Syllabus