Links are the power behind the World Wide Web. Through links, millions of pages, filled with information and knowledge, are only a click away. Every Web site can become a virtual library—a place to learn and grow! And it’s all so very simple to accomplish.
Uniform Resource Locator
Before we get into how to create a hyperlink in HTML, we have to cover some "techy" stuff. Every Web site has an address call the Uniform Resource Locator or URL (pronounced like "earl"). Think of an URL as an address. If you’ve done any Web surfing at all, you have probably used an URL or two. But what does it mean? Let’s examine one more closely:

http:// (hypertext transfer protocol) is a code or what is technically called a protocol that helps one computer talk to another computer. The Internet also has another protocol called FTP (file transfer protocol).
www or world wide web lets the server (the computer) know the file is located on the World Wide Web.
myschool.com is a domain name or where the Web site is hosted.
homework.html is the file or Web page you are seeking.
Hypertext Link
Okay, now that you understand URLs, you’ll find it easier to understand links.
There are two things you need to create a link:
- the name of a file or the URL you want to link to
- the link hotspot—the highlighted text or graphic that will be clicked on to get to where you want to go.
<a>…</a>
Inside the tag, you need the attribute: HREF (hypertext reference). An example of a link looks like this:
Harry uses the browser called Netscape.
The code looks like this:
Harry uses the browser called
<a href="http//:www.netscape.com">Netscape</a>.
Let's take a closer look at the code:

Notice that the anchor tag must surround the hotspot and that the attribute HREF must describe where the browser should look for the Web site (the URL).
It's that simple! Now let's look at putting some images on a web page.
Download in PDF Format HERE:

No comments:
Post a Comment