IST129 - Ch6: Document Layout


Netscape proprietary tags:

Following tags are propietary to Netscape. Their use is discouraged.


IST129 - Ch7 Links and Webs

This chapter is rather long and deals with various URL's including WWW URL's (http://), FTP for file transfer protocol (ftp://), newsgroups (news://), straight text files (file://), and javascript execution (javascript://). Additionaly, the anchor tag, <a>, is introduced formally.

External links:

The anchor tag allows you to link your web pages to other web pages. When you link to other web pages (on your site or someone else's site), the link is said to be external.

Linking to other pages on your WWW site (or another WWW site) is purely a matter of WWW site design:

External links are pretty easy. Assuming that this file is called page1.htm, here is a link to display page2.htm:

       <a href="page2.htm"> Click here for page 2 </a>

The user sees Click here for page 2. When they click, the next page that displays is page2.htm as shown on the href="page2.htm" attribute.

The preceding example illustrates a relative reference in that you do not explicitly mention that page2.htm exists on a specific web site. The browser assumes that page2.htm exists on the last WWW site accessed. That is, note that the browser retains the site URL even as you page through a site and the HTML web page name changes.

An example of an absolute reference (or fully qualified file name) would be:

       <a href=" http://guitarzan.homepage.com/tncc/page2.htm "> Click here for page 2 </a>

Now that you know how to link pages to one another, you must confront the issue of site navigation. This issue deals with how users will find their way around your site and back again.

Some sites offer site maps, [Back] buttons, and Frame navigation bars

Internal links:

The anchor tags also allows you to link to various topics within the same web page. The book refers to this kind of link as a fragment. I refer to this type of link as an internal link. The book correctly refers to internal liks as the programming equivalent of a GOTO statements.

Here are some examples of internal links:bbbb

Internal links are fairly simple, too. Here are the 3 preceding internal links:

Note the # symbol. The # symbol means one thing: ... the current page. In one of the Javascript URL samples below, it means stay on the current page. In the preceding internal links, it means that to link to another section of the current page.

In addition to specifying the anchor tag with the HREF="#..." attribute, you must also specify the section of the web page to jump to. To do that, you must use the anchor tag with the NAME="..." attribute as shown:

       <a name="WWW"></a>

Please note that you do not use the # symbol when specifying the NAME.

Use internal links when it just does not make sense to create another HTML file. That is, use internal links when the volume of data is small enough to reside in the same file, yet the number of topics demands some sort of division.

Internal links are used for alphabetical listings like the following that simply take you to phone listings within the same HTML file:

       A    B    C   

Do not use internal link if it makes an HTML file especially large and unwieldy for the user to naviagte or for you to maintain. For example, this HTML file is becoming too large to easily maintain.

WWW URL:

       (external link)... Click here for Microsoft's WWW site is actually:

       <a href="http://www.microsoft.com"> Click here for Microsoft's WWW site </a>

FTP URL:

       (external link)... Click here for Microsoft's FTP site is actually:

       <a href="ftp://ftp.microsoft.com"> Click here for Microsoft's FTP site </a>

JAVASCRIPT URL:


Maps Revisited:

Maps are described in more detail in chapter 7. New stuff introduced includes:

Searchable Documents:

The book discusses the use of the <isindex> tag as an aid to search engines to allow your documents to be searched by keyword.

What the book does not stress strongly enough is that searching of HTML documents requires server side programming in PERL, C, or JAVA which is well beyond the scope of this course. Therefore, I leave the reading of this section of the book to you.


<base> tag:

The <base> tag allows you to specify the starting directory that the browser is to use whenever it encounters your use of relative URLs.

The concept assumes that you are familiar with sub-directory hierarchies and that, furthermore, you have a number of sub-directories on your WWW site that hold different kinds of files.

With the <base> tag, you specify the start directory to use for all relative URL references, even if that directory is different than the directory that the currently displayed page is found.

An example follows:

    <html>
       <head>
          <title>Yadda, yadda, yadda...</title>
          <base href="/docs/">
       </head>
          ...
    </html>


META tags:

META tags are used for internal documentation and possibly document automation.

META tags are tags that provide data about tags. That is, META tags provide internal documentation (the user does not see it) about who, what, and when created/modified the HTML.

The <meta> tag has 2 attributes:

There are few rules governing what text strings to use. Common usage of strings like "keywords" is governed by convention, not standards.

"A" Phone listings...

Able, James - 555-5555
Abner, Bill - 555-5555
Abott, Joey - 555-5555
Able, James - 555-5555
Abner, Bill - 555-5555
Abott, Joey - 555-5555
Able, James - 555-5555
Abner, Bill - 555-5555
Abott, Joey - 555-5555
Able, James - 555-5555
Abner, Bill - 555-5555
Abott, Joey - 555-5555

"B" Phone listings...

BAble, James - 555-5555
BAbner, Bill - 555-5555
BAbott, Joey - 555-5555
BAble, James - 555-5555
BAbner, Bill - 555-5555
BAbott, Joey - 555-5555
BAble, James - 555-5555
BAbner, Bill - 555-5555
BAbott, Joey - 555-5555
BAble, James - 555-5555
BAbner, Bill - 555-5555
BAbott, Joey - 555-5555

"C" Phone listings...

CAble, James - 555-5555
CAbner, Bill - 555-5555
CAbott, Joey - 555-5555
CAble, James - 555-5555
CAbner, Bill - 555-5555
CAbott, Joey - 555-5555
CAble, James - 555-5555
CAbner, Bill - 555-5555
CAbott, Joey - 555-5555
CAble, James - 555-5555
CAbner, Bill - 555-5555
CAbott, Joey - 555-5555