<tagname attribute="value">
<a href="templates.html">link to
template list</a>
<img src="/~glarose/images/bullet.jpg"
alt="*">
<body
bgcolor="#
rrggbb">
or
<body
background="
graphic-file">
bgcolor
specifies a color for the background
of the web page, in Red Green Blue hexadecimal (base 16--to fill
two digits, 1 is 11, 2 is 22, etc: 33,..., 99, 10, AA, BB,...,
FF)--so 0000FF is bright blue, 999900 is medium brown, etc. To
see the colors, check out
Doug
Jacobsons's RGB Color Chart.
background
specifies a graphic to use for the
background (which is tiled over the background). Specify the
graphic file as you would any other web location.
<body
text="#
rrggbb"
link="#
rrggbb"
alink="#
rrggbb"
vlink="#
rrggbb">
bgcolor
; sets the color of normal
text, links, active links (those clicked on) and visited
links.
<h1
align="
alignment">
left
,
right
, center
, or justify
.
<hr width="
value"
align="
alignment">
50%
) for the horizontal rule, and an alignment
(left
, right
, or center
).
[table of contents]
[end of document]
.gif
or .jpg
file.
.gif
or
.jpg
file).
.jpg
file with xv.
ImageMagick
might have done a better conversion job.)
<img
src="
imagefile"
alt="
alternate-text"
align="
alignment"
border="
borderwidth"
vspace="
vspcvalue"
hspace="
hspcvalue">
top
, middle
,
bottom
, left
, or right
.
The first three specify alignment relative to the text around
the image; left
or right
cause images
to settle to the left or right of the text being entered.
borderwidth sets the width of any border (this is significant if the image is inside an anchor!), given in pixels
vspcvalue and hspcvalue give the vertical and horizontal spacing around the image.
<img
src="/~glarose/images/bulletR.jpg" alt="bulletR"
align="top">some text
| gives | ![]() |
<img
src="/~glarose/images/bulletR.jpg" alt="bulletR"
align="middle" hspace=10>some text
| gives | ![]() |
<a href="/~glarose/"><img src="/~glarose/images/bulletR.jpg" alt="bulletR"
align="middle">some text</a>
| gives | ![]() |
<a href="/~glarose/"><img src="/~glarose/images/bulletR.jpg" alt="bulletR"
align="middle" border=0>some text</a>
| gives | ![]() |
[table of contents]
[end of document]
<dl> <dt> This has <dd> <dl> <dt> a couple <dd> of levels of<br> indentation. <p> All done with<br> definition lists! </dl> <dt> (It -is- legal to <dd> nest lists!) </dl> |
gives
. |
|
[table of contents]
[end of document]
Example:
<table> <tr> <td>this is data cell 1 <td>this is data cell 2 <tr> <td>this is data cell 3 <td>this is data cell 4 </table> |
. |
|
Attributes for tables include border
s (the value
after the border attribute gives the width of the border):
<table border=5> <tr> <td>this is data cell 1 <td>this is data cell 2 <tr> <td>this is data cell 3 <td>this is data cell 4 </table> |
. |
|
this is data cell 1 | this is data cell 2 |
this is data cell 3 | this is data cell 4 |
For a more complete introduction to tables, see the table section of Gavin's HTML summary.
[table of contents]
[end of document]
Getting there
The addresses in anchors and images are URLs (Uniform Resource Locators). These tell, in order,<a
href="http://brillig.NebrWesleyan.edu/~glarose/index.html#interstuff">Gavin's
interesting stuff</a>
brillig.NebrWesleyan.edu
,/~glarose/
,index.html
, andinterstuff
in that file.
<a href="/~glarose/index.html#interstuff">Gavin's
interesting stuff</a>
/~glarose
,
we can just say
<a href="index.html#interstuff">Gavin's
interesting stuff</a>
index.html
, we can
just specify the location in the document:
<a href="#interstuff">Gavin's interesting
stuff</a>
Defining locations to go to
interstuff
that we were going
to in the file, we also use an anchor tag, but with a different
attribute:
<a name="interstuff">this is the location
called interstuff</a>
View Source
ability of your browser to
see how the links to the table of contents at the end of each section in
this document are set up!
[workshop
home]
[previous (other issues)]
[next (templates)]
[HTML summary]
last modified on 17 May 1996
(more) Advanced HTML