Adding Links Learning Web Design: Chapter 6. Lesson Overview Using the anchor tag Linking to other pages with relative or absolute pathnames Linking to.

Slides:



Advertisements
Similar presentations
XP 1 Developing a Basic Web Site Tutorial 2: Web Site Structures & Links.
Advertisements

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.
Links and Comments.
New Perspectives on Creating Web Pages with HTML
XP Browser and Basics1. XP Browser and Basics2 Learn about Web browser software and Web pages The Web is a collection of files that reside.
XP Adding Hypertext Links to a Web Page. XP Objectives Create hypertext links between elements within a Web page Create hypertext links between Web pages.
Web Structure Create Links Using HTML. 2 Objectives List different types of Web site structures and how to employ them Create element ids to mark specific.
Internet Publishing / Dreamweaver Luke E. Reese CARRS
Announcement #1 1 Lecture 9. Announcement #2  Midterm exam will be on Oct. 12 (Tuesday)  pm – 1.45 pm  Exam will cover all materials till Oct.
Browser and Basics Tutorial 1. Learn about Web browser software and Web pages The Web is a collection of files that reside on computers, called.
XP 1 Developing a Basic Web Site Creating a Chemistry Web Site Tutorial 2.
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.
Shows the entire path to the file, including the scheme, server name, the complete path, and the file name itself. Same idea of stating your full name,
CNIT 132 – Week 3 HTML (2). Working with Links Using a link is a quicker way to access information at the bottom of a Web page than scrolling down. A.
XP Creating Web Pages with HTML, 3e1 WEB DESIGN & MANAGEMENT CLASS 5 - 2/26/02 - Agenda Homework discussions FTP issues – If you have FTP issues, please.
Mohammed Mohsen Links Links are what make the World Wide Web web-like one document on the Web can link to several other documents, and those.
XHTML Introductory1 Linking and Publishing Basic Web Pages Chapter 3.
XP New Perspectives on Browser and Basics Tutorial 1 1 Browser and Basics Tutorial 1.
Agenda Links External and Internet Links Anchor Tag Text Hyperlinks Image Hyperlinks Images Image Attributes: src, alt, width, height, align, border.
Adding Hyperlinks To a Web Page. Hyperlink and Its Add-Ons Main way to connect web pages and move throughout a web site. Uses the Anchor Tag which is.
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.
XP 1 New Perspectives on Creating Web Pages with HTML Adding Hypertext Links to a Web Page.
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Project 4: Creating Hyperlinks Kelly L.
CHAPTER 3 USING HYPERLINKS TO CONNECT CONTENT. LEARNING OBJECTIVES How to use the and anchor tag pair to create a text-based hyperlink. How to use the.
Using Html Basics, Text and Links. Objectives  Develop a web page using HTML codes according to specifications and verify that it works prior to submitting.
XHTML Louise Soe updated September 2009.
Developing a Web Site. Web Site Navigational Structures A storyboard is a diagram of a Web site’s structure, showing all the pages in the site and indicating.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
Web Site Design & Management Class Two. Agenda Attendance Questionnaire Setup/task Homework Review Screenshots Lists/Nested Lists Home Page Links Images.
XP Mohammad Moizuddin Creating Web Pages with HTML Tutorial 2 1 New Perspectives on Creating Web Pages With HTML Tutorial 2: Adding Hypertext Links to.
1.  Use the anchor element to link from page to page  Configure absolute, relative, and hyperlinks  Configure relative hyperlinks to web pages.
Enhancing Your Web Site—Adding Links Web Page **YOU MUST HAVE COMPLETED THE 1ST 3 WEB PAGES BEFORE YOU CAN DO THIS ONE. **YOU SHOULD HAVE COMPLETED THE.
Unit 3 Day 6 FOCS – Web Design. Journal Unit #3 Entry #4 Write the source code that would make the following display on a rendered page: Shopping List.
INTRODUCTORY Tutorial 6 Using Links on a Web Page.
XHTML Hyperlinks. Creating Links to Other Web Pages A link, or hyperlink, is a specially formatted Web page object that the user can click to open a different.
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.
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.
And adding hyperlinks. MyWebpage Everything that we want in our website, including other folders, documents, xhtml files, image files, css files should.
HTML 58.51A LINKING & LISTS Linking to local files name of destination.... anchor tag HREF attribute. This attribute identifies the location of the link.
Tutorial 2 Developing a Web Site. XP Objectives Learn how to storyboard various Web site structures Create links among documents in a Web site Understand.
XP 1 HTML Tutorial 2: Developing a Basic Web Site.
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.
Chapter 6 Links. 3 Parts of Links 1. Destination: defines what happens when a user clicks the link. 2. Label: this is the text (or possibly an image)
XP INFT 140 – Chapter 2 1 Developing a Basic Web Site Creating a Chemistry Web Site.
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.
Developing a Basic Web Site Maureen Smith Professor, Saddleback College Tutorial 2.
Internet Publishing / Dreamweaver Luke E. Reese Biosystems & Ag. Engr. / CARRS
1 More About HTML Images and Links. 22 Objectives You will be able to Include images in your HTML page. Create links to other pages on your HTML page.
Developing a Basic Web Site HTML Tutorial 2. Objectives Define links and how to use them. Create element ids to mark specific locations within a document.
Hyperlink ● Anchor tag and its attributes ● Four Types of URL ─ ─ Absolute addressing ─ Relative addressing ─ Intrapage ● Attributes -- link, vlink,
Chapter 5 BIE2313 | Web design. ALL RIGHTS RESERVED No part of this document may be reproduced without written approval from Limkokwing University of.
© ExplorNet’s Centers for Quality Teaching and Learning 1 Objective % Understand advanced production methods for web-based digital media.
`. Lecture Overview HTML Body Elements Linking techniques HyperText references Linking images Linking to locations on a page Linking to a fragment on.
CIS 228 The Internet Day 4, 9/8/11 Getting on the Internet.
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 2 Creating Links.
Hyperlinks Links for Other Pages. Hyperlink (aka Link) Text (or image) user can click Takes user to different location In general, location can be: On.
HTML5 and CSS3 Illustrated Unit E: Inserting and Working with Links.
Finally getting to html and CSS… Tim Berners-Lee, the writer of the software program that makes him the inventor of the WWW, defines the Internet as a.
HTML Links CS 1150 Spring 2017.
Internal and External Links
Internal and External Links
CS7026: Authoring for Digital Media HTML Authoring
CNIT 131 HTML5 – Anchor/Link.
Lesson 4: Hyperlinks.
Enhancing Your Web Site—Adding Links Web Page
HTML LINKS
HTML Links CS 1150 Fall 2016.
Hyperlinks Anchor Tags.
Presentation transcript:

Adding Links Learning Web Design: Chapter 6

Lesson Overview Using the anchor tag Linking to other pages with relative or absolute pathnames Linking to other pages on the Web Internal links with the anchor tag More on URLs

The Anchor Tag The anchor tag or element is used to create links The hypertext reference or href attribute is used to give the address of the page The text that appears between the opening and closing tags is called hypertext The default style of anchors is underlined blue text Linked images have a blue border Visited links are purple

The Anatomy of an Anchor Opening tag Hypertext This text usually appears as blue underlined text in the browser The closing tag: Go back to Menu

Common Problems with Links Web servers are usually case sensitive: Make sure you have spelled the filename and pathname correctly, including the correct case Be sure to use correct nesting of tags Inner tag is always closed before outer tag Correct: … Incorrect: …

Linking Using Pathnames Definition: Local Pages are those on your own computer or server You usually have control of these pages Definition: External Pages are those outside of your Web site You usually do not have control over these pages Links to files whose position is given in relation to the current file need a Relative URL Links to files whose position is given depending their absolute location on the system need an Absolute URL

Linking to Pages on the Web Refer to other pages on the Internet by using the complete Absolute URL These pages not located on your local machine are called external pages Use as part of the URL Some examples: href=“ href=“

Various Kinds of URL Protocols HTTP- points to remote documents on the Web href= “ Non-Anonymous FTP- needs username and password Anonymous FTP- point to files on FTP servers href=“ftp://cseftp.tc.uvu.edu/barthoki/pages/index.htm” Mailto- used to send if browser supports it: href=“mailto:

Linking Within Your Own Site Most linking you will do will be to resources within your own Web site using a Relative URL Without a protocol like in the pathname: the browser will begin looking in the current directory for the file The forward slash / is used to separate directories and filenames

Linking Within a Directory The most often used Relative URL is to another file in the same directory as your page If no path is given, just the filename, the server just looks in the current directory Example: About Us

Linking Within a Directory Cake.jpg GoodEats Images / about.htm Recipes / oatmeal.htmsalmon.htm Toast.jpg index.htm jello.htmcupcakes.htm Dessert / About Us

Linking to a Lower Directory If page is stored in a subdirectory of the current directory, you must provide the pathname as well as the filename Use the forward slash / to separate the subdirectory name(s) from the filename Example: Salmon

Linking to a Lower Directory Cake.jpg GoodEats Images / about.htm Recipes / oatmeal.htm salmon.htm Toast.jpg index.htm jello.htmcupcakes.htm Dessert / Salmon

Linking Two Directories Down Cake.jpg GoodEats Images / about.htm Recipes / oatmeal.htmsalmon.htm Toast.jpg index.htm jello.htm cupcakes.htm Dessert / Green Jello

Linking to a Higher Directory This pathname might include directions to go up directory level(s) to get to the file needed Use two dots and a / to refer to the directory above the current one:../ For each directory level upward, add another../ Example: Home

Linking to a Higher Directory Cake.jpg GoodEats Images / about.htm Recipes / oatmeal.htmsalmon.htm Toast.jpg index.htm jello.htmcupcakes.htm Dessert / Home Dessert Recipes GoodEats

Linking Upward Two Directories Cake.jpg GoodEats Images / about.htm Recipes / oatmeal.htmsalmon.htm Toast.jpg index.htm jello.htmcupcakes.htm Dessert / Home Dessert Recipes GoodEats

Relative Pathname Examples Examples of relative pathnames: href=“files/morefiles/file.htm” move down two directories href=“../file.htm” move up one directory href-“../../file.htm” move up two directories

Site Root Relative Pathnames The root directory is the directory that contains all the files and subdirectories for a Web site The root directory path starts with the root and lists the subdirectories until the file is reached Don’t list the name of the root directory, just use the / to start the pathname Example: Salmon

Site Root Relative Linking Cake.jpg GoodEats Images / about.htm Recipes / oatmeal.htm salmon.htm Toast.jpg index.htm jello.htmcupcakes.htm Dessert / Salmon

Linking to a Point on a Page You can create links to different locations internally within a document These links allow the user to jump to various places within the document, not just to the top of the page Sometimes called “linking to a fragment”

Naming the Link Destination Use the id attribute to flag a destination point for a link The id must be unique within the document The id value can have no spaces in it and must begin with a letter or underscore Example: IS&T Department

Linking to the Destination With the identifier (id) in place, you must then create a link to it Use tag with the href attribute to provide the location To signal you are linking to a fragment, use the hash symbol (#) before the fragment name The also requires some hypertext for the user to click Linking: Main Heading

Page: letterB.html Names that begin with B before Byrd Byrd, William, Names that begin with B after Byrd More stuff Return to: Byrd, William Using Anchors to Jump Within the Same Page

Linking to a Fragment on Another Page You can link to another page by identifying a fragment on the destination page Use the id attribute to name the fragment When linking to the fragment from one page: Add the # and the fragment name to the end of the URL of the other page

Names that begin with B before Byrd Byrd, William, Names that begin with B after Byrd See Also Byrd, Gibbons, Lassus Using Anchors to Jump into a Second Page Page: index.htm Page: letterB.htm

Targeting a New Window If you have a goal to keep people at your site even when they click an external link… Then open the external page in a new window Use the target attribute with the _blank value UVU

Lesson Summary Links are created with the anchor tag href attribute is used to give filename for link id attribute is used to create link fragments You can jump to a link fragment within the same document or in another document Use the target attribute to determine if a new window opens with the link or the same window is used URLs can be used to point to many different kinds of information on the Internet