This will be an easy lesson. We need to talk about some
definitions before we begin.
HTML (Hyper Text Markup Language) - Language using
hyperlinks to navigate from page to page
HTTP (Hyper Text Transfer Protocol) - Internet
protocol used to request HTML documents from remote servers.
Example: http://domain.com/webpage.html
Hyper Text (a.k.a. Link) - Text used to request a
file. Example: Top of page!
You should memorize these terms and definitions. Links are
very simple and easy to use. There are four kinds of links:
Standard links: http://www.google.com
Mailto links: Email me at [email protected]
Undefined Links: Click here for a definition!
Bookmark link: Click to go to
lesson 1
Standard links are used to link to another web page. Mailto
links are for visitors to send an email directly. Undefined
links you don't need to worry about. You probably won't use
them unless you know JavaScript. Bookmark links are links that
go to a specified spot on a page. You will learn about these
with images. Links are simple
to create. They only have one attribute, but it must be
included.
<a href="http://www.url_of_your_page.com">Your
text here</a>
That was a standard link. Easy right? Now for a
mailto link.
<a href="mailto:address@where_ever.com">
Still very simple correct? Let's try some examples:
<a href="http://www.yahoo.com">Go to
yahoooooooooooo!</a>
<a href="http://www.dogpile.com">A search
engine</a>
<a href="mailto:[email protected]">My email
address</a>
Go to yahoooooooooooo!
A search engine
My email adress
Vary easy. You can also use images as links, but we will
learn that later.
Have
you ever seen a web page without links? Can you make a page
with links to your favorite sites? Can you create a page with
email links to all of your friends?
You have finished your first
unit!
|