12
Linking to Other Web Page

The tag to create a link is called, which stands for anchor. You put the address of the page to link to in quotes after href=, like the following:

Embed Size (px)

Citation preview

Page 1: The tag to create a link is called, which stands for anchor.  You put the address of the page to link to in quotes after href=, like the following:

Linking to Other Web Page

Page 2: The tag to create a link is called, which stands for anchor.  You put the address of the page to link to in quotes after href=, like the following:

Linking to Another Web Page

The tag to create a link is called <a>, which stands for anchor.

You put the address of the page to link to in quotes after href=, like the following:› <a href=http://youtube.com> cool videos!

</a> Href

› Stands for hypertext reference and is called an attribute of the <a> tag.

Page 3: The tag to create a link is called, which stands for anchor.  You put the address of the page to link to in quotes after href=, like the following:

Linking Between Your Own Pages

When you create a link from one page to another page on the same computer, it isn’t necessary to specify a complete Internet address. If the two pages are in the same directory folder, you can simply use the name of the HTML file:› <a href=“cool.html”> salad oh!! </a>

Page 4: The tag to create a link is called, which stands for anchor.  You put the address of the page to link to in quotes after href=, like the following:

Relative Addresses

If you have many pages, you’ll want to put them in more than one directory folder. In this case, you still shouldn’t use the full Internet address to link between them. You can use relative addresses, which include only enough information to find one page from another.

Relative address describes the path from one page to another; instead of a full (or absolute) Internet address.

Page 5: The tag to create a link is called, which stands for anchor.  You put the address of the page to link to in quotes after href=, like the following:

Relative Addresses

You want to include a link to a page named five.html, which is in subfolder named Hot. This link would look like the following:› <a href=“hot/five.html”> Price </a>

The five.html page might contain a link back to the main price.html page:› <a href=“../price.html> Home <a/>

The double dot (..) is a special code that indicates the folder containing the current folder.

Page 6: The tag to create a link is called, which stands for anchor.  You put the address of the page to link to in quotes after href=, like the following:

HTML Tag and Attribute Covered

Tag Attribute Function

<a> … </a>

With the href attribute, creates a link to another document or anchor

href The address of the document or anchor point to link to.

Page 7: The tag to create a link is called, which stands for anchor.  You put the address of the page to link to in quotes after href=, like the following:

Publishing Your HTML Pages

Page 8: The tag to create a link is called, which stands for anchor.  You put the address of the page to link to in quotes after href=, like the following:

Setting Up an Internet Web Site

To make an HTML page part of the publicly accessible World Wide Web, you need to put it on a Web server (a computer permanently connected to the Internet and equipped to send out Web pages on request.

Page 9: The tag to create a link is called, which stands for anchor.  You put the address of the page to link to in quotes after href=, like the following:

Transferring Pages to a Web Server

When a Web server computer sends Web pages to people through the Internet, it uses an information exchange standard called Hypertext Transfer Protocol (HTTP). To upload a page to your Web site, however, you usually need software that uses an older communication standard called File Transfer Protocol (FTP).

File Transfer Protocol› The standard that your file transfer software must

adhere to when sending files to a Web server.

Page 10: The tag to create a link is called, which stands for anchor.  You put the address of the page to link to in quotes after href=, like the following:

Making a File Available for Downloading

Many Web authors want to know how to make a file that isn’t a Web Page available for downloading from a Web site. › Example: zip, doc, exe file

Just upload the file to your Web site. For example, if the file was called salad.doc, the link would look like this:› <a href=“salad.doc”> Click to here to

download </a>

Page 11: The tag to create a link is called, which stands for anchor.  You put the address of the page to link to in quotes after href=, like the following:

Workshop

Your best friend from elementary school finds you on the Internet and says he wants to trade home page links. How do you put a link to his page at www.rowfour.com/ogag on your page?

Your home page will be at http://mysite.com/home.html when you put it on the Internet. Write the HTML code to go on the page so that when someone clicks the words all about me, they see the page located at http://www.mysite.com/mylife.html.

Page 12: The tag to create a link is called, which stands for anchor.  You put the address of the page to link to in quotes after href=, like the following:

Workshop

You plan to publish a CD-ROM disk containing HTML pages. How do you create a link from a page in the \food directory folder to the \food\salad\hot.html page?

How about a link from \food\salad\hot.html to the \food\spaghetti\cold.html page?