1 / 6

More HTML Codes

More HTML Codes. Review: How do you change the border color of an image?. What is a Hyperlink?. A hyperlink is a link to another page. For example: <A HREF="http:// www.tsn.ca"> Click Here for TSN</ A > If you click on the words “Click Here for TSN”, it will take you to the TSN website.

Download Presentation

More HTML Codes

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. More HTML Codes Review: How do you change the border color of an image?

  2. What is a Hyperlink? • A hyperlink is a link to another page. For example: <A HREF="http://www.tsn.ca">Click Here for TSN</A> If you click on the words “Click Here for TSN”, it will take you to the TSN website.

  3. Here's What's Happening • A stands for Anchor. It starts the link to another page. • HREF stands for Hypertext REFerence. That's a nice, short way of saying to the browser, "This is where the link is going to go." • http://www.tsn.ca is the FULL ADDRESS (URL) of the link. Also notice that the address has an equal sign in front of it and is enclosed in quotes. Why? Because it's an attribute of the Anchor tag, which is a command inside of a command. • Where it reads "Click Here for TSN" is where you write the text that you want to appear on the page. So write something that denotes the link. • /A ends the entire link command.

  4. Hyperlinks • Sample Code – Try this <HTML> <HEAD> <TITLE> Creating Links</TITLE> </HEAD> <BODY> <A HREF = “http://www.tsn.ca”>Click here to go to TSN</A> <P>This is how you link Images <A HREF=“http://www.nhl.com”><IMG SRC = “price.jpg”></A> </P> </BODY> </HTML>

  5. Linking Your Pages • Sample Code – Try the following <HTML> <HEAD> <TITLE>Linking to the first Example</TITLE> <BODY BGCOLOR = "red"> <H1 STYLE = "text-align:center; ">Welcome!</H1> <P><A HREF=“hyperlinks.html”>Click here to check out my favourite sports links</A></P> </BODY> </HTML>

  6. Homework • On the site you developed with your five favourite things. Link all 5 images so they go to another site on the internet and allow the user to find out more information related to your topic. • Also…. Create an index page welcoming the user to your site and then create a link to your favourite things page.

More Related