1 / 12

Linking to Other Web Page

Linking to Other Web Page. 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

Download Presentation

Linking to Other Web Page

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Linking to Other Web Page

  2. 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.

  3. 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>

  4. 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.

  5. 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.

  6. HTML Tag and Attribute Covered

  7. Publishing Your HTML Pages

  8. 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.

  9. 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.

  10. 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>

  11. 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.

  12. 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?

More Related