|
|
Every Page Starts Like This
The <TITLE> tag does this in your browser:
The Remaining Tags Go Between the One-Sided Tags
This
is more commonly done as a "Two-Sided Tag" as such:
<P> </P> The
<HR> tag creates the horizontal rules
seen throughout this document to partition material
You can also change the height (SIZE) and width of the horizontal rules:
Two-Sided Tags <B>Placing
these tags around words makes the words bold</B>
<I>Placing
these tags around words make the words italicized</I>
<FONT
SIZE="+2">This
makes the font bigger by 2 sizes</FONT>
<FONT
SIZE="-1">You
can also make the font smaller</FONT>
<FONT
FACE="arial,helvetica">You
can also change the font face</FONT>
<FONT
COLOR="green">You
can change the font color, using a color name, such as the name "green."</FONT>
You can also use hexidecimal values. In which case, you enter a value as such: <FONT COLOR="#006600">Here is a change in color using a hexidecimal value</FONT>
<FONT
FACE="arial,helvetica" size="+1">You
can apply more than one font attribute to the same text.</FONT>
<H1>This
is a level 1 heading</H1>
<H2>This
is a level 2 heading</H2>
<H6>This
is a level 6 heading</H6>
<ADDRESS>Dr.
Steve Anderson, James Madison University</ADDRESS>
Use this at the bottom of your page to "sign your work."
<BLOCKQUOTE>This
tag allows you to indent a block of material, such as when you want
to "quote" someone.</BLOCKQUOTE>
<B><I>You
can even use a combination of more than one type of tag. This is both
bold and italic</I></B>
Multiple
Tags must be "nested." This means that you close the tags
in the reverse order that you opened them. i.e. Other Useful Tags Mailto: Tag
Hyperlinks to Other Sites
"Relative" Path Hyperlinks
Notice that clicking on the word "dog" will take you to a different html file called "dog.html" "Absolute"
Path Hyperlinks
The above example presumes that the file "dog.html" is located on the same server and in the same directory as the html file you're currently working on. If the file is on another server you would have to specify:
It
might look like this:
This
indicates that the protocol is hypertext transfer protocol (http), You
will need this type of syntax anytime you want to create a link to something
off your own site. Inline
Images
Making
an Image into a Hyperlink
To
make an inline image clickable, you must place the <IMG
SRC="images/cat.gif"> information in between the two anchor
tags as in the following:
To
remove the blue border from around the image, add border="0"
to the
tag as such: <IMG SRC="images/cat.gif" border="0"> Body Attributes These get added to the existing <BODY> tag: <BODY
BGCOLOR =?>
<BODY TEXT=?> Sets the text color, using name or hexidecimal value
<BODY LINK=?> Sets the color of links, using name or hexidecimal value
<BODY VLINK=?> Sets the color of visited links, using name or hexidecimal value
<BODY ALINK=?> Sets the color of active links, using name or hexidecimal value
Setting
More Than One BODY Attribute for the <BODY BGCOLOR=? TEXT=? LINK=? VLINK=? ALINK=?>
Background
Images
Background images were extensively used in the "early days" of the web. Today, they are considered tacky in most applications. Avoid them. If you find a compelling need, here is an example of a tag to do this. <BODY BACKGROUND="images/backgr.gif"> The actual
image backgr.gif is very small
For more information about this web site, contact Dr. Steve Anderson at anderssd@jmu.edu. |