280 likes | 432 Views
Doing L I N K S. Links 1: Internal Links Links to anchors on the current page (Internal). Internal Links. Links to anchors on the current page (Internal). L inks are the most fundamental part of the world wide web. It is the links that tie it all together. Different kinds of Links.
E N D
Doing L I N K S Links 1: Internal Links Links to anchors on the current page (Internal).
Internal Links • Links to anchors on the current page (Internal).
Links are the most fundamental part of the world wide web. • It is the links that tie it all together
Different kinds of Links • There are different kinds of links you can have on your website: • Links on the current page (Internal). • Links to other pages within the current site (Local) • Links to pages outside the current site (Global).
Link Tags • The tags used to produce links are the <a> and </a>.
LINK to a target • . • . . <A NAME=“POEM”><H3><P>My Poem about Roses></H3></P></A> A Rose is a rose is a Rose
Anchor tags • Everything between these two will work as a link. <a> and </a>.
Starting links • The S T A R T of the link is added to the <a> tag using the href="http://www.whateverpage.com" setting. This is where we are going to….
The target of the link is added to the <a> tag using the href="http://www.whateverpage.com" setting. Start the Link
The example below shows how to make the word here work as a link to yahoo. Click <a href="http://www.yahoo.com">here</a> to go to yahoo. Start the Link
You simplify: • Specify the START in the <a href=" ">. • Then add the text that should work as a link. • Finally add an </a> tag to indicate where the link ends
Watch the COLOR of the text Links • There are a few settings that can be useful for controlling the colors of text links.
how to: • Define colors for all links on the page. • Define colors for individual links on the page
Define colors for all links on the page • The general color of text links is specified in the <body> tag, like in the example below:<body link="#C0C0C0" vlink="#808080" alink="#FF0000"> • ?
LINK • link - standard link - to a page the visitor hasn't been to yet. (standard color is blue - #0000FF).
vlink • vlink - visited link - to a page the visitor has been to before. (standard color is purple - #800080).
alink • alink - active link - the color of the link when the mouse is on it. (standard color is red - #FF0000).
Define colors for individual links on the page • you might want some or links to have different colors than the rest of the page. • There are 2 ways for doing this:
Individual links • Placing font tags between the <a href> and the </a> tag.This method will work on all browsers …usually • <a href><Font Color=red>Web </a>
Another way…… • Using a style setting inside the <a> tag. This method works on newer browsers. • The first technique would look like this:Click <a href="http://www.yahoo.com"><font color="FF00CC">here</font></a> to go to yahoo.
Note: • It is important that both the <font> and the </font> tags are between the • <a href> and </a> tags.
The second technique would look like this: Click <a href="http://www.yahoo.com" style="color: rgb(0,255,0)"> here </a> to go to yahoo. Sets the style internally inside the <a>
PROBLEM…. • Neither of these two techniques will work with every browser…. So COMBINE ‘em both…..
This example will work on all browsers: • This example will work on all browsers:Click <a href="http://www.yahoo.com" style="color: rgb(0,255,0)"> <font color="FF00CC">here</font></a> to go to yahoo.
Safe browsers • The last example is interesting. Not only because it will work on all browsers. But even more because it shows a general approach to making your pages browser safe.
About browsers • browsers simply leave out information that is not understood, • you can work around browser differences by simply adding different settings for multiple browsers.