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.

Slides:



Advertisements
Similar presentations
CIS 1315 – Web Development for Educators CIS 1315 HTML Tutorial 2: Developing a Web Site.
Advertisements

XP 1 Developing a Basic Web Site Tutorial 2: Web Site Structures & Links.
HTML5 and CSS3 Illustrated Unit E: Inserting and Working with Links
Links and Comments.
New Perspectives on Creating Web Pages with HTML
HTML Introduction (cont.) 10/01/ Lecture 8, MAT 279, Fall 2009.
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.
Tutorial 2 Developing a Basic Web Site
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.
1 Linking Web Pages Why is Hypertext Hyper? Storyboarding Page Links (Site Map) Path to Files Various Links Click Here :( Page Footers.
1 Linking Web Pages Why is Hypertext Hyper? Storyboarding Page Links (Site Map) Sequential and Indexed-Sequential Designs Hierarchical Design Custom Design.
Chapter 2: Application layer  2.1 Web, HTTP and HTML (We will continue…)  2.2 FTP  2.3 SMTP 9/22/2009 Lecture 7, MAT 279, Fall
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.
XP 1 Developing a Basic Web Site Creating a Chemistry Web Site Tutorial 2.
The Internet & The World Wide Web Notes
XP Tutorial 2New Perspectives on HTML, XHTML, and DHTML, Comprehensive 1 Developing a Basic Web Site Creating a Chemistry Web Site Tutorial 2.
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.
Tutorial 2 Developing a Web Site
Copyright © Texas Education Agency, All rights reserved. 1 Web Technologies Website Development with Dreamweaver.
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.
Links in HTML. Hyperlinks or links Millions of linked web pages make up the World Wide Web Used to connect a web page to another web page on the same.
Tutorial 2 Developing a Basic Web Site. New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition 2 Objectives Learn how to storyboard various.
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.
Hyperlinks. Linking pages…Hyperlinks 2 Lecture 8  Hyperlink “A clickable HTML element that will direct the web browser to display a different Web page.
XP 1 New Perspectives on Creating Web Pages with HTML Adding Hypertext Links to a Web Page.
Images (1) Three most popular formats – Graphics Interchange Format (GIF) – Joint Photographic Experts Group (JPEG) – Portable Network Graphics (PNG) –
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Project 4: Creating Hyperlinks Kelly L.
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.
Tutorial 2 Developing a Basic Web Site. XP Objectives Learn how to storyboard various Web site structures Create links among documents in a Web site Understand.
HTML, CSS, and XML Tutorial 2 Developing a Web Site.
Tutorial 4: Working with Hyperlinks. Objectives Session 4.1 – Place bookmarks on a Web page – Create a link to a bookmark – Create a link to another Web.
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.
Creating Links – Lesson 31 Creating Links Lesson 3.
Tutorial 2 Developing a Basic Web Site. XP Objectives Learn how to storyboard various Web site structures Create links among documents in a Web site Understand.
Adding Links Learning Web Design: Chapter 6. Lesson Overview Using the anchor tag Linking to other pages with relative or absolute pathnames Linking to.
Developing a Basic Web Site
INTRODUCTORY Tutorial 6 Using Links on a Web Page.
XP 1 Developing a Basic Web Site Creating a Chemistry Web Site Tutorial 2.
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.
Basics.  An address for a Web site is its domain name  URL (Uniform Resource Locator)  Specifies the precise location of a resource on the Internet.
XP INFT 140 – Chapter 2 1 Developing a Basic Web Site Creating a Chemistry Web Site.
Website design and structure. A Website is a collection of webpages that are linked together. Webpages contain text, graphics, sound and video clips.
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.
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.
Session: 4. © Aptech Ltd. 2Creating Hyperlinks and Anchors / Session 4  Describe hyperlinks  Explain absolute and relative paths  Explain how to hyperlink.
Microsoft Office 2008 for Mac – Illustrated Unit D: Getting Started with Safari.
XP 1 Charles Edeki AIU Live Chat for Unit 2 ITC0381.
Lecture 8 Introduction to Web Programming. Announcement  First In-class exam will be on Oct. 10 (Wednesday)  2.50pm – 4.05pm  Exam will cover all materials.
HTML And the Internet. HTML and the Internet ► HTML: HyperText Markup Language  Language in which all pages on the web are written  Not Really a Programming.
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.
Lecture 6, MAT 279, Fall HTML Introduction (cont.) 9/17/2009.
HTML5 and CSS3 Illustrated Unit E: Inserting and Working with Links.
4.01 How Web Pages Work.
Objective % Select and utilize tools to design and develop websites.
Links and Comments in HTML5
Developing a Basic Web Site
Internal and External Links
Creating Links – Lesson 3
Internal and External Links
Objective % Select and utilize tools to design and develop websites.
Navigating The World Wide Web
Inserting and Working with Links
CNIT 131 HTML5 – Anchor/Link.
HTML Introduction Lecture 8.
Presentation transcript:

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 in a Web page, usually by clicking it with a mouse, to view another topic or document, often called the link’s destination 1

Creating Links Within a Document 2

Creating Element Ids One way to identify elements in an HTML document is to use the id attribute Id names must be unique Id names are not case sensitive Example: Chemistry Classes 3

Creating Links Within a Document To create a link within a document, you enclose the content that you want to format as a link in an tag, and use the href attribute to identify the link target Example: Classes A link’s content is not limited to just text. You can create a hyperlink using an image too. Generally, a link should not contain any block-level elements: May Not Work: Heading This Is Better: Heading 4

Working with Web Site Structures A storyboard is a diagram of a Web site’s structure, showing all the pages in the site and indicating how they are linked together It is important to storyboard your Web site before you start creating your pages in order to determine which structure works best for the type of information the site contains A well-designed structure can ensure that users will be able to navigate the site without getting lost or missing important information 5

Linear Structures 6 A linear structure An augmented linear structure

Hierarchical Structures 7

Mixed Structures 8

9 Protected Structures Sections of most commercial Web sites are off-limits except to subscribers and registered customers

Navigation Lists in HTML 5 A navigation list is a list of links (e.g., a menu) to the topics in a website. The tag in HTML 5 accomplishes this: Home Tips Glossary 10

Creating Links Between Documents on the Same Website To link to a page, you specify the name of the file using the href attribute of the tag Example: Contact Info Filenames are case sensitive on some operating systems, including UNIX and Mac OS, but not on others The current standard is to use lowercase filenames for all files on a Website and to avoid special characters such as blanks and slashes You should also keep filenames short to avoid typing errors 11

Linking to a Specific Location Within Another Document When linking to a location within another document, you must use the id name of the location within the document and the filename content Example: Classes 12

Linking to Documents in Other Folders To create a link to a file located in a different folder than the current document, you must specify the file’s location, or path, so that browsers can find it HTML supports two kinds of paths: relative and absolute An absolute path specifies a file’s precise location within a computer’s entire folder structure Example: Help 13

Relative Paths A relative path specifies a file’s location in relation to the location of the current document If the file is in the same location as the current document, you do not have to specify the folder name Example: More Info If the file is in a subfolder of the current document, you have to include the name of the subfolder Example: Help 14

Relative Paths (continued) If you want to go one level up the folder tree, you start the relative path with a double period (..) then provide the name of the file Example: Faculty To specify a different folder on the same level, known as a sibling folder, you move up the folder tree using the double period (..) and then down the tree using the name of the sibling folder Example: Student Info You should almost always use relative paths in your links 15

A Sample Folder Tree 16

Understanding URLs A Uniform Resource Locator (URL) specifies the precise location of a resource on the Internet To create a link to a resource on the Internet, you need to know its URL A protocol is a set of rules defining how information is exchanged between two resources Your Web browser communicates with Web servers using the Hypertext Transfer Protocol (HTTP) The URLs for all Web pages must start with the scheme “http” Other Internet resources use different protocols and have different scheme names e.g., ftp, mailto 17

The Form of a URL 18 A sample URL for a Web page If you leave off the protocol, http is assumed. If you leave off the filename/id, index.html is assumed.

Linking to E- mail Many Web sites use to allow users to communicate with a site’s owner, or with the staff of the organization that runs the site You can turn an address into a link, so that when a user clicks on an address, the browser starts an program and automatically inserts the address into the “To” field of the new outgoing message Example: Send Mail to Rick 19

Hypertext Attributes: Target You can force a document to appear in a new window by adding the target attribute to the tag Examples: CNN (opens in a new browser called “window2”) CNN (opens in a new unnamed browser) CNN (opens in the current browser) 20

Hypertext Attributes: Title (Tool Tips) 21 A popup title or tool tip is a descriptive text that appears whenever a user positions the mouse pointer over a link. Since only some browsers support popup titles, you should not place crucial information in them. The title attribute produces the popup title. Home Page

Graphical Links on a Web Page: Image Maps To use a single image to access multiple hyperlinks, you must set up hotspots within the image A hotspot is a defined area of the image that acts as a hypertext link When a user clicks within a hotspot, the hyperlink is activated Hotspots are defined through the use of image maps, which list the positions of all hotspots within an image There are two types of image maps: server-side image maps and client-side image maps 22

Example Image and Image Map 23

Client-Side Image Maps A client-side image map is inserted in an image map into the HTML file The browser locally processes the image map - faster Because all of the processing is done locally, you can easily test Web pages list of hotspots 24

Defining Image Map Hotspots Define a hotspot using two properties: – Its location in the image – Its shape Syntax of the hotspot element: Shape and coordinates are: – rect ulx, uly, lrx, lry – circle x, y, radius – polygon x1, y1, x2, y2, x3, y3, … 25

Sample Set of Hotspots A sample rectangular hotspot is: A sample circular hotspot is: A sample polygonal hotspot is: 26

Putting It All Together <area shape=“rect” coords=“384,61,499,271” href=“water.htm” /> <area shape=“circle” coords=“307,137,66” href=“karts.htm” /> <area shape=“polygon” coords=“13,60,13,270,370, 270,370,225,230,225,230,60” href=“rides.htm” /> 27