In lesson 8 we learned how to make a small graphic image act as a hyperlink to some other web page or a larger size copy of a picture. We noticed that the web browser places a bounding box around the graphic, to identify it as being "hyper" like normal hypertext items:
However, the box is sometimes distracting, especially if we have an image that has non-rectangular borders. The user can typically determine if a picture is "hyper" simply by noting a change in the cursor as they move a mouse over the image (it usually changes to a "hand" when it is over an active link).
You can hide the box by adding an attribute to the <img...> tag:
<a href="bigpict.gif"><img src="lilpict.gif" border=0>
In this example, the inline image lilpict.gif acts as a hyperlink to the bigger image bigpict.gif. The border=0 attribute has no meaning if the <img..> tag is not inside of an <a href=...</a> tag.
<a href="usa.html"> <img src="../pictures/left.gif" alt="** " border=0> Return to <i>Volcano Web</i></a>
And now we show you how to do the opposite of taking away borders; adding BIG THICK borders! You can use the same border=X option to add a border around an image. The number you use for X determines the thickness, in pixels, of the border placed around an image:
8 pixel border on an inline image
<IMG SRC="pictures/disk.gif" WIDTH=48 HEIGHT=40 border=8>Note that the border color is the color defined as the TEXT color in the BODY tag. (see lesson 16)
You can also use this on an image that is acting as a hyperlink:
8 pixel border on an inline image, hyperlinked to another page
<A HREF="page.html"> <IMG SRC="pictures/disk.gif" WIDTH=48 HEIGHT=40 border=8></a>Note that the border color is the color defined as the LINK color in the BODY tag. (see lesson 16)
In lesson 6 we first created unordered <ul>...</ul> lists. The web browser automatically puts a bullet mark in front of each item -- and the bullets change if we create a list inside of a list. With some web browsers, you can specify in your HTML any of three bullet characters by adding an attribute to the <ul> tag:
<ul type=xxxx>
where xxxx can be:
And here is even more! You can change the type within a list by putting the type attribute in the <li> tag:
HTML | How it Looks | |
---|---|---|
<ul type=square> <li>this is item 1 <li>this is item 2 <li>this is item 3 <li type=circle> Hey! how about these bullets? <li>this is another item <li>and one more <li type=disc> Hey! how about these bullets? </ul> |
|
Another thing we can do with ordered lists is to have them start counting from some other value than 1. To do this, we add the start=y attribute to the <ol> tag. Note that even if we have some other type=x attribute, we still specify the starting value y as "2,3,10,100, etc". Look at some of these examples:
Arabic | Capital Letters | Small Letters | Large Roman | Small Roman |
---|---|---|---|---|
<ol type=1 start=11> |
<ol type=A start=11> |
<ol type=a start=11> |
<ol type=I start=11> |
<ol type=i start=11> |
|
|
|
|
|
And finally you can change the numbering sequence within a list by adding a value=z attribute to the <li> tag. Look at this example:
HTML | How it Looks | ||
---|---|---|---|
<ol type=A start=5><i> Important Cheese Laws</i> <li>Cheese Curing Act of 1905 <li>Milk Content Ruling of 1923 <p> <li value=12>Cheese Import Tariff of 1942 <li>Cheese Freshness Codes of 1942 <p> <li value=1>Cheese Values Act of 1789 |
|