19
How to get there from here. Lesson 5 – Unit E

How to get there from here. Lesson 5 – Unit E. Library

Embed Size (px)

Citation preview

Page 1: How to get there from here. Lesson 5 – Unit E. Library

How to get there from here.

Lesson 5 – Unit E

Page 2: How to get there from here. Lesson 5 – Unit E. Library

Library

Page 3: How to get there from here. Lesson 5 – Unit E. Library

Call numbers

Page 4: How to get there from here. Lesson 5 – Unit E. Library

Book Look Up – Old Way

Page 5: How to get there from here. Lesson 5 – Unit E. Library

Book Look Up - Online

Page 6: How to get there from here. Lesson 5 – Unit E. Library

Web Addressis like a call number to locate a page.

Page 7: How to get there from here. Lesson 5 – Unit E. Library

The href tag has two major partsweb address what to click on

Page 8: How to get there from here. Lesson 5 – Unit E. Library

<a href=“address” >Clickable item</a>

Page 9: How to get there from here. Lesson 5 – Unit E. Library

<a href=“address” >Clickable item</a>

Address can be: Clickable item can be:

file name folder(s)/file name

web address location within a page special item

text image (or media) text and image

http://www.gccaz.edu is a valid web addresswww.gccaz.edu is a NOT a valid web address WHY?

Page 10: How to get there from here. Lesson 5 – Unit E. Library

Another page in same location.<a href=“page2.html” />my second page</a>

A page that is external to the page.<a href=“http://www.cnn.com” />news</a>

Click on an image.<a href=“bgdog.jpg” ><img src=“dog.jpg></a>

Page 11: How to get there from here. Lesson 5 – Unit E. Library

A different spot in the page – jump links<a href=“#taxinfo” />taxes</a>Need to create a location to jump to (also called a target) <h2 id=“taxinfo”>

Open the new item in a different window (or tab).<a href=“p3.html” target=“_blank” />cat</a>

Open an e-mail composition window.<a href=“mailto:[email protected]” />email me</a>

Page 12: How to get there from here. Lesson 5 – Unit E. Library

Link States "LoVe HAte"a:link

link that has not been visited

a:visitedlink that has been visited

a: hoverlink that mouse is currently pointing over

a:activelink that is being clicked (literally during the time the users are clicking it.)

ALWAYS SPECIFY IN THIS ORDER.

Page 13: How to get there from here. Lesson 5 – Unit E. Library

Focus "LoVe Fears HAte"Applies while the link has focus

—for example while a keyboard user’s cursor is on that link.

Note: IE does not currently support the focus state, and just uses active in place of focus.

Page 14: How to get there from here. Lesson 5 – Unit E. Library

Traditionally, text links were blue if not visited and purple if visited, and there is still reason to believe that these are the most effective colors to use, although, again, with the increasingly widespread use of CSS, this is becoming less commonplace and the average user no longer assumes that links must be blue or purple.

Page 15: How to get there from here. Lesson 5 – Unit E. Library

Step 1 – Add link stylesa:link { color: red; }a:visited { color: green; }a:hover { color: orange; }a:active { color: silver; }

Page 16: How to get there from here. Lesson 5 – Unit E. Library

PSEUDO CLASSCategorization of web page elements.Based on a relationship or condition of the element at a given moment, rather than a static property value.

Allows you to style content dynamically.

selector:pseudo-class {property:value;}

http://www.w3schools.com/css/css_pseudo_classes.asp

Page 17: How to get there from here. Lesson 5 – Unit E. Library

Step 2 - Add pseudo class#menu a:link { color: gold; }#menu a:visited { color: cadetblue; }#menu a:hover { color: lime; }#menu a:active { color: tomato; }

Page 18: How to get there from here. Lesson 5 – Unit E. Library

Step 3 - Add div to menu links and name it menu.<div id="menu"><h2 id="dog">| <a href="r1.html" />Outside</a> | <a href="r2.html" />Inside</a> | <a href="http://en.wikipedia.org/wiki/Dachshund" />Dachshund Info</a> | Dog Gone |</h2><div>

Page 19: How to get there from here. Lesson 5 – Unit E. Library