A worthwhile feature of web pages is a "footer" at the bottom of a page that provides information about the author and the document, maybe the last date it was modified, as well as a means to send the author a message by e-mail.
This is the place for the address tag which just stylizes a block of text in italic and offsets it to a new line.
It is a good idea to make footers brief, informative, and consistent between your different web pages. Some useful information to include is:
As examples, see the footers at the bottom of every web page in this tutorial. In composing your own style, take a look at other web pages for ideas. Imitation still is a very high form of flattery!
The HTML format for the address tag looks like:
<address> text text text text text text text text text text text text text text text text text text </address>Note that all other HTML inside the address tag is legal, so we might modify it with bold tags, line breaks, and a hypertext link tag:
HTML | Result |
---|---|
<address> <b>Page Title</b><br> Last Updated February 31, 1999<br> Web Page by Alan Levine (levine@maricopa.edu) <br> <a href="http://www.mcli.dist.maricopa.edu/"> Maricopa Community Colleges</a><br> </address> |
Page Title Last Updated February 31, 1999 Web Page by Alan Levine (levine@maricopa.edu) Maricopa Community Colleges |
Now, suppose someone was reading your page and wanted to send you a comment on how nice your page looked. They would have to write down your e-mail address, launch another program, and send you a message. Wouldn't it be great if you could send email from your Web browser? Well, most web browsers now can!
The way to do this is to create a hypertext link with the mailto type in the URL (see lesson 8b for a refresher). Create an email hypertext link like this:
<a href="mailto:levine@maricopa.edu">send an e-mail to alan</a>When the text send an e-mail to alan is clicked, the web browser will bring up a screen where you can compose a message and send it to me. What's more, you can also insert a default subject line for the e-mail message (NOTE: this may not work on all browsers):
<a href="mailto:levine@maricopa.edu?subject=hi from lesson 12"> send an e-mail to alan</a>Try it! Send me a note! send an e-mail to alan
Note that you can have any text (or graphic) act as the hypertext link. So in the previous example, we would modify the HTML to have the internet address create the link for e-mail.
HTML | Result |
---|---|
<address> <b>Page Title</b><br> Last Updated February 31, 1999<br> Web Page by Alan Levine <A HREF="mailto:levine@maricopa.edu"> (levine@maricopa.edu)</A> <br> <a href="http://www.mcli.dist.maricopa.edu/"> Maricopa Community Colleges</a><br> </address> |
Page Title Last Updated February 31, 1999 Web Page by Alan Levine (levine@maricopa.edu) Maricopa Community Colleges |
And finally, we recommend that you also put in the footer the URL for the page. Why? What if someone prints out your web page but does not bookmark it or write down its URL? Including the URL on the page provides a handy reference. Just modify the above example (note how this HTML is below the <address>...</address> tag: | |
<address> <b>Page Title</b><br> Last Updated February 31, 1999<br> Web Page by Alan Levine <A HREF="mailto:levine@maricopa.edu"> (levine@maricopa.edu)</A> <br> <a href="http://www.mcli.dist.maricopa.edu/"> Maricopa Community Colleges</a><br> </address> <p> <tt> URL: http://www.mcli.dist.maricopa.edu/tut/ </tt> |
Page Title Last Updated February 31, 1999 Web Page by Alan Levine (levine@maricopa.edu) Maricopa Community Colleges URL: http://www.mcli.dist.maricopa.edu/tut/ |
<HR> <address><B>Volcano Web</B> <br> created by Lorrie Lava, <A HREF="mailto:lava@pele.bigu.edu">lava@pele.bigu.edu</A><br> Volcanic Studies, <A HREF="http://www.bigu.edu/">Big University</A><p> <TT>last modified: April 1, 1995</TT> </address> <p> <tt>URL: http://www.bigu.edu/web/index.html</tt>
NOTE: We've used several HTML tags that have been covered in previous lessons. Also note the extra <p> tag at the bottom; this makes sure the last line of text is always visible.
The Internet Connection at MCLI is
Alan Levine --}
Comments to levine@maricopa.edu
URL: http://www.mcli.dist.maricopa.edu/tut/tut12.html