Basic HTML: More Stuff


After learning about markup and basic document structure, there are just a few more rules, and then a bunch of tags to play with!

Attributes

Many tags support attributes which modify the behavior of the tag. In general, these will be of the form attribute=value and appear in the opening tag: e.g.,
<h1 align=center>A Centered Header</h1>
Note: attribute values NOT consisting of only letters, numbers, hyphens or periods MUST be quoted. Thus
<body bgcolor=white text=black link=blue vlink=red alink=cyan>
uses the attributes bgcolor, text, link, vlink and alink to make the background color for the body of the document white, the text black, links blue, visited links red, and active links (when they are being clicked on) cyan. We can also specify colors as a hexidecimal RGB number:
<body bgcolor="#ffffff" text=black link=blue vlink=red alink=cyan>
does the same thing as before, using the hexidecimal representation "#ffffff" for white. Because of the pound sign it must be quoted.

Tag Order

When closing nested tags, close them innermost first: e.g., use
<b><font size="+2">large and bold</font></b>
Not
<b><font size="+2">large and bold</b></font>

Addresses

Include an address giving the author and last modified date for the page at the bottom of each Web document: e.g.,
<address><br>
made by Gavin LaRose<br>
glarose@NebrWesleyan.edu<br>
last modified 1 Jan 2001
</address>


Do It More:
Go back to the basic document that you started working with in the do it session before, and add an example of each of the rules given above to brighten your page. Then, we'll go on and look at some more tags to play with.


[basics] [writing] [doit] [more] [tags1] [tags2] [doit2] [review]

[title] [objectives] [www uses] [the works] [basic html]
[adv html] [editors] [resources]   [feedback]

last modified (( Jun 18 08:23:45 1997 ))
HTML/WWW Wkshop: More Basic HTML
©1997 Gavin LaRose
Comments to: glarose@NebrWesleyan.edu