Unit F Inserting and Working with Links.

Slides:



Advertisements
Similar presentations
Developing a Web Site: Links Using a link is a quicker way to access information at the bottom of a Web page than scrolling down A user can select a link.
Advertisements

CIS 1310 – HTML & CSS 6 Layout. CIS 1310 – HTML & CSS Learning Outcomes  Describe & Apply the CSS Box Model  Configure Float with CSS  Designate Positioning.
HTML5 and CSS3 Illustrated Unit E: Inserting and Working with Links
Need to define two things: › The destination › Something to click on to get there  Tag is click here  Can be text, special character or image (next.
Ch. 5 Web Page Design – Templates and Style Sheets Mr. Ursone.
Links and Comments.
Chapter 14 Introduction to HTML
Link and Table in HTML. Statistics HTML review The two faces of a HTML file In a notepad program. In a internet browser program. The function of HTML.
Internal and External Links Web Design – Section 3-6 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development.
HTML Essentials HyperText. Why HyperText ? Hypertext is text or pictures which reference other pages which the reader can immediately access Hypertext.
Informatics Computer School CS114 Web Publishing HTML Lesson 2.
Web Design (5) Navigation (1). Creating a new website called ‘Navigation’ In Windows Explorer, open the folder “CU3A Web Design Group”; and then the sub-folder.
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Project 4: Creating Hyperlinks Kelly L.
Doman’s Sections Information in this presentation includes text and images from
XP Dreamweaver 8.0 Tutorial 3 1 Adding Text and Formatting Text with CSS Styles.
Creating Web Pages with Links, Images, and Formatted Text Information Presented by S. Cox.
How to get there from here. Lesson 5 – Unit E. Library.
Creating Links. The Anchor Element: The anchor tag can be used in three different ways: 1.External link – to link to a web page outside your own website.
ECA225 Applied Interactive Programming Cascading Style Sheets, pt 1 ECA 225 Applied Online Programming.
Tutorial 3 Adding and Formatting Text with CSS Styles.
Internal and External Links Web Design – Section 3-6 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
HTML Links HTML uses a hyperlink to another document on the Web.
HTML Comprehensive Concepts and Techniques Second Edition Project 2 Creating a Web Site with Links.
Chapter 5 BIE2313 | Web design. ALL RIGHTS RESERVED No part of this document may be reproduced without written approval from Limkokwing University of.
ECA 228 Internet/Intranet Design I Cascading Style Sheets.
Links All CSS properties can be applied on links (i.e. change colors, fonts, underline, etc). The new thing is that CSS allows you to define these properties.
HTML5 and CSS3 Illustrated Unit E: Inserting and Working with Links.
HTML Links CS 1150 Spring 2017.
Cascading Style Sheets
HTML Basics.
Objective % Select and utilize tools to design and develop websites.
Links and Comments in HTML5
Internal and External Links
Internal and External Links
Links and Comments.
Cascading Style Sheets contd: Embedded Styles
Lecture 3 Sarsenova Zhibek.
Cascading Style Sheets
Creating Links.
Cascading Style Sheets (Layout)
Objective % Select and utilize tools to design and develop websites.
Links. Links Links Need to define two things: The destination Something to click on to get there Tag is click here Can be text, special.
Web Development & Design Foundations with HTML5 7th Edition
Chapter 7 Page Layout Basics Key Concepts
Web Development & Design Foundations with HTML5
COMP 101 Review.
IS333: MULTI-TIER APPLICATION DEVELOPMENT
Basics of Web Design Chapter 7 Page Layout Basics Key Concepts
Hyperlinks, Images and Tables
Links.
Inserting and Working with Links
Computers and Scientific Thinking David Reed, Creighton University
CNIT 131 HTML5 – Anchor/Link.
>> Dynamic CSS Selectors
Links and Comments.
Creating Links.
Web Development & Design Foundations with HTML5
Links.
Hyperlinks, Images and Tables
Cascading Style Sheets (CSS)
Links and Comments.
Links and Comments.
Web Development & Design Foundations with HTML5
HTML LINKS
HTML Links CS 1150 Fall 2016.
Creating Links.
CGS 3066: Web Programming and Design Fall 2019 CSS Extra
Presentation transcript:

Unit F Inserting and Working with Links

How to get there from here.

Library

Call numbers

Book Look Up – Old Way

Book Look Up - Online

Web Address is like a call number to locate a page.

The href tag has two major parts web address what to click on

Some Important Terms Hyperlink - also called a link Target document - what is being linked to (the destination). a element - tag that encloses hyperlink Specified by using <a></a> tag pair href attribute - used to specify target document

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

<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 address www.gccaz.edu is a NOT a valid web address WHY?

Understand URLs Uniform Resource Locator (URL) also known as a web address - format for specifying how and where to find a resource on internet Scheme (http or https) Server name Path http://web.gccaz.edu/~timgo00001/cis133/f-urls.html

Structure of URL and common values of href attribute

Nav bar a set of links for moving between pages in a website (and even to external links.)  Horizontal nav bar </header> <nav class="sitenavigation"> <p><a href="index.html">Home</a></p> <p><a href="hours.html">Hours</a></p> <p><a href="https://goo.gl/maps/qH0x8" target="_blank">Location</a></p> <p><a href="tipsheet.pdf">Tips</a></p> </nav> <article>

Vertical nav bar </header> <nav class="sitenavigation"> <p><a href="index.html">Home</a></p> <p><a href="started.html">Getting Started</a></p> <p><a href="schedule.html">Schedules</a></p> <p><a href="https://goo.gl/maps/2z1wg" target="_blank">Field Location</a></p> </nav> <article>

Relative link: path and filename needed to locate the target document from the current web page The value of the href attribute only includes relative location information, not server name or scheme Often used in a nav bar

Absolute link: full and complete address for the target document Value for the href attribute is a complete URL of the target web page Necessary when creating a link to another website, hosted on another server

Valid Web Addresses Valid Invalid http://web.gccaz.edu web.gccaz.edu project q.html Valid Invalid

A page in the same folder. <a href="page2 A page in the same folder. <a href="page2.html">my second page</a> A page in a subfolder named review. <a href="review/page3.html">my third page</a> A page that is an external address. <a href="http://www.cnn.com">news</a> <a href="https://acme.com/staff/fj.html">Fred Jones</a>

Click on an image. <a href="happy.html"><img src="h-dog.jpg"></a> <a href="lg-dog.jpg"><img src="sm-dog.jpg"></a>

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:alex@acme.com">email me</a>

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

Change CSS display type Nav bar is usually displayed horizontally or vertically Change each link to a block-level element to style it with padding border margins

Change an element’s display type by using the display property Commonly used values for the display property

<nav class="sitenavigation"> <p><a href="index.html">Home</a></p> <p><a href="hours.html">Hours</a></p> <p><a href="https://goo.gl/maps/qH0x8" target="_blank">Location</a></p> <p><a href="tipsheet.pdf">Tips</a></p> </nav>

<nav class="sitenavigation"> <p><a href="index.html">Home</a></p> <p><a href="hours.html">Hours</a></p> <p><a href="https://goo.gl/maps/qH0x8" target="_blank">Location</a></p> <p><a href="tipsheet.pdf">Tips</a></p> </nav>

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.

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

Link States "LoVe HAte" a:link a:visited a: hover a:active link that has not been visited a:visited link that has been visited a: hover link that mouse is currently pointing over a:active link that is being clicked (literally during the time the users are clicking it.) ALWAYS SPECIFY IN THIS ORDER.

PSEUDO CLASS Categorization 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

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;

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>

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.

Rollover effect - mouse interaction occurring when the user's mouse pointer hovers over a link but does not click on it Code for a:hover style rule

A few causes of difficulties Invalid address. Misspelling the address. Missing end quotes around address. Missing > between address and clickable item. Missing end </a> Whenever a lot more is underlined than should be, the ending <a> is probably missing Missing clickable item.