|
|
||||
![]() | ||||
The syntax, including all possible HTML 3 options and Netscape extensions, for describing an image in HTML, is as follows:
<IMG options>
Where options is one or more of the following. In the cases where a particular option is only available for certain versions of Netscape, these are denoted with abbreviations like [N1.1] for Netscape 1.1 or newer.
SRC= option. The purpose of this is to allow the user to see
something while waiting for the highly detailed image (which has a much larger
file size) to load. However, this option is not used very often since the
introduction of support for interlaced GIFs.
Auto
Load Images option in Netscape turned off. While
it is not necessary to describe every single image you use, describing things
like graphical banners and section names can be of great help to anyone who
does not always see the graphics.
However, using these options to specify the exact size of the image (without scaling) results in a more pleasing appearance while the page loads, so they should always be used for this purpose.
using ALIGN=TOP |
using ALIGN=BOTTOM |
using ALIGN=MIDDLE |
using ALIGN=LEFT |
using ALIGN=RIGHT |
using ALIGN=TEXTTOP |
using ALIGN=ABSMIDDLE |
using ALIGN=BASELINE |
using ALIGN=ABSBOTTOM |
When specifying the location of a file, there are two types of URLs that can be used, relative and absolute.
An absolute URL contains the name of the site and the entire path to get to a file. For example, the URL of the main Admission page is http://www.mtholyoke.edu/adm/index.shtml
However, if you want to refer to a page or image which is on the same host as the referring page, there is no need to re-type the http://hostname part of the URL. A relative URL can be used instead.
For example, the page you are reading right now is located in the folder http://www.mtholyoke.edu/help/creating-pages/imaging/. In order to create a reference to the index.shtml page in Admission, there is no need to have the http://www.mtholyoke.edu at the beginning, because it resides on the same host as this page. Instead, only /adm/index.shtml is needed.
Similarly, in order to include the GIF file vert.gif, which resides
in the same folder as the file you are reading, there is no need to include
any path information at all. Simply using <IMG
HREF="vert.gif"> works just fine, as you can see from all
of the blue-green vertical bars appearing above.
The biggest advantage in using relative URLs wherever possible, aside from not having to type so much, is that if the files ever need to be moved to another location (or even another server alltogether), no changes will need to be made to the URLs. On the other hand, had you used absolute URLs, every one of them would have to be corrected.
![]()
Top | Previous Page | Next Page
Home | MyMHC | Web Email | Directories | SiteMap | Search | Help
Admission |
Academics |
Campus Life |
Athletics Copyright © 1997 Mount Holyoke College. This page created by the OIS Operations Group and maintained by Dan Wilga. Last modified on January 20, 1997. |