Q: How do I create a horizontal line separating
the sections of my page?
You can use the HR tag to create a horizontal
line to separate sections of your page. Example:
HTML
Code |
What
it looks like |
Some text. <HR>
Some more text in a new section. |
Some text.
Some more text in a new section. |
Q: How do I link to another page or website?
Links are made by surrounding
a text or image with anchor tags and the HREF
attribute. Links can be specified as relative
or absolute referrences. Absolute referrences
specify the full domain and path to the document
where as relative links specifiy a path to the
document in relation to the current document.
An example of each is shown below:
HTML
Code |
What
it looks like |
<A HREF="www.freeservers.com/">FreeServers</a>
|
FreeServers |
<A HREF="index.html">Tech
Support</a> |
Tech
Support |
Q: How do I link to an e-mail address?
You can link to an e-mail address
by using the MAILTO keyword in the HREF attribute
of the anchor tag.
Example:
HTML
Code |
What
it looks like |
<A HREF="mailto:jdoe@domain.com">jdoe@domain.com</a>
|
jdoe@domain.com |
Q: How do I link to another location within
a document?
To link to a location within
a document, you first must create an anchor tag
at the location you want to link to using the
NAME attribute. Then you can create a link to
that location with another anchor tag prefacing
the name of the local link with a pound symbol
'#'. Example:
HTML
Code |
What
it looks like |
<A NAME="locallink">Local
Link Here</a> |
Local Link Here |
<A HREF="#locallink">Goto
locallink</a> |
Goto
locallink |
Q: How do I link to a target location from
elsewhere in the document (anchor tags)?
To link to a location within
a document, you first must create an anchor tag
at the location you want to link to using the
NAME attribute. Then you can create a link to
that location with another anchor tag prefacing
the name of the local link with a pound symbol
'#'. Example:
HTML
Code |
What
it looks like |
<A NAME="locallink">Local
Link Here</a> |
Local Link Here |
<A HREF="#locallink">Goto
locallink</a> |
Goto
locallink |
|