Copyright © 2003 Pearson Education, Inc. Slide 6-1 Created by Cheryl M. Hughes, Harvard University Extension School Cambridge, MA The Web Wizards Guide.

Slides:



Advertisements
Similar presentations
© 2002 D & D Enterprises 1 Linking Images For Navigation & Clickable Image Maps.
Advertisements

Copyright © 2003 Pearson Education, Inc. Slide 7-1 The Web Wizards Guide to PHP by David Lash.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 2 Introduction to XHTML Programming the World Wide Web Fourth edition.
Copyright © 2003 Pearson Education, Inc. Slide 8-1 The Web Wizards Guide to PHP by David Lash.
Copyright © 2003 Pearson Education, Inc. Slide 6-1 Created by Cheryl M. Hughes The Web Wizards Guide to XML by Cheryl M. Hughes.
Copyright © 2003 Pearson Education, Inc. Slide 1-1 The Web Wizards Guide to PHP by David A. Lash.
Copyright © 2003 Pearson Education, Inc. Slide 7-1 Created by Cheryl M. Hughes, Harvard University Extension School Cambridge, MA The Web Wizards Guide.
Copyright © 2003 Pearson Education, Inc. Slide 8-1 Created by Cheryl M. Hughes, Harvard University Extension School Cambridge, MA The Web Wizards Guide.
Copyright © 2003 Pearson Education, Inc. Slide 3-1 Created by Cheryl M. Hughes The Web Wizards Guide to XML by Cheryl M. Hughes.
The Web Wizards Guide to HTML Chapter Four All About Hyperlinks.
Copyright © 2002 Pearson Education, Inc. Slide 1.
Copyright © 2003 Pearson Education, Inc. Slide 1 Computer Systems Organization & Architecture Chapters 8-12 John D. Carpinelli.
Copyright © 2003 Pearson Education, Inc. Slide 5-1 Created by Cheryl M. Hughes The Web Wizards Guide to XML by Cheryl M. Hughes.
Copyright © 2003 Pearson Education, Inc. Slide 4-1 Created by Cheryl M. Hughes, Harvard University Extension School Cambridge, MA The Web Wizards Guide.
Copyright © 2003 Pearson Education, Inc. Slide 4-1 Created by Cheryl M. Hughes The Web Wizards Guide to XML by Cheryl M. Hughes.
Copyright © 2003 Pearson Education, Inc. Slide 5-1 Created by Cheryl M. Hughes, Harvard University Extension School Cambridge, MA The Web Wizards Guide.
Copyright © 2003 Pearson Education, Inc. Slide 7-1 Created by Cheryl M. Hughes The Web Wizards Guide to XML by Cheryl M. Hughes.
Chapter 1 The Study of Body Function Image PowerPoint
Copyright © 2011, Elsevier Inc. All rights reserved. Chapter 5 Author: Julia Richards and R. Scott Hawley.
Copyright © 2011, Elsevier Inc. All rights reserved. Chapter 4 Author: Julia Richards and R. Scott Hawley.
1 Copyright © 2010, Elsevier Inc. All rights Reserved Fig 2.1 Chapter 2.
1 Chapter 40 - Physiology and Pathophysiology of Diuretic Action Copyright © 2013 Elsevier Inc. All rights reserved.
Chapter 1 Image Slides Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
3.02D HTML Overview 3.02 Develop webpages.
17 Copyright © 2005, Oracle. All rights reserved. Deploying Applications by Using Java Web Start.
XP New Perspectives on Microsoft Office Word 2003 Tutorial 7 1 Microsoft Office Word 2003 Tutorial 7 – Collaborating With Others and Creating Web Pages.
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Title Subtitle.
List and Search Grants Chapter 2. List and Search Grants 2-2 Objectives Understand the option My Grants List Grant Screen Viewing a Grant Understand the.
0 - 0.
DIVIDING INTEGERS 1. IF THE SIGNS ARE THE SAME THE ANSWER IS POSITIVE 2. IF THE SIGNS ARE DIFFERENT THE ANSWER IS NEGATIVE.
ADDING INTEGERS 1. POS. + POS. = POS. 2. NEG. + NEG. = NEG. 3. POS. + NEG. OR NEG. + POS. SUBTRACT TAKE SIGN OF BIGGER ABSOLUTE VALUE.
SUBTRACTING INTEGERS 1. CHANGE THE SUBTRACTION SIGN TO ADDITION
MULT. INTEGERS 1. IF THE SIGNS ARE THE SAME THE ANSWER IS POSITIVE 2. IF THE SIGNS ARE DIFFERENT THE ANSWER IS NEGATIVE.
Addition Facts
Applications of XSLT. generating Word documents WordML provides formatting and content elements Word 2003 can read WordML files XSLT can be used to transform.
ZMQS ZMQS
10. Juni 1998reto ambühler ( WELCOME TO THE GATHERING PLACE.
Copyright 2012, 2008, 2004, 2000 Pearson Education, Inc.
4. Internet Programming ENG224 INFORMATION TECHNOLOGY – Part I
ABC Technology Project
© S Haughton more than 3?
Basic HTML Workshop LIS Web Team Spring 2007.
1 Programming the Web: HTML Basics Computing Capilano College.
Twenty Questions Subject: Twenty Questions
Web Development & Design Foundations with XHTML
Getting Familiar with Web Pages 1 2 The Internet Worldwide collection of interconnected computer networks that enables businesses, organizations, governments,
Addition 1’s to 20.
Dr. Alexandra I. Cristea XHTML.
25 seconds left…...
Test B, 100 Subtraction Facts
Week 1.
We will resume in: 25 Minutes.
1 Unit 1 Kinematics Chapter 1 Day
Copyright © 2003 Pearson Education, Inc. Slide 1-1 Created by Cheryl M. Hughes, Harvard University Extension School — Cambridge, MA The Web Wizard’s Guide.
Copyright © 2003 Pearson Education, Inc. Slide 2-1 Created by Cheryl M. Hughes, Harvard University Extension School — Cambridge, MA The Web Wizard’s Guide.
HTML Links and Anchors.
Copyright © 2003 Pearson Education, Inc. Slide 3-1 Created by Cheryl M. Hughes, Harvard University Extension School — Cambridge, MA The Web Wizard’s Guide.
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.
Linking web pages Wah Yan College (Hong Kong) Mr. Li C.P.
Making a Game Linking Slides. To link slides: 1.Prepare your storyboard 2.Complete all slides 3.Link the slides.
1.  Use the anchor element to link from page to page  Configure absolute, relative, and hyperlinks  Configure relative hyperlinks to web pages.
Introducing XLink and XPointer ©NIITeXtensible Markup Language/Lesson 10/Slide 1 of 23 Objectives In this lesson, you will learn to: * Identify the types.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
McGraw-Hill/Irwin © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Linking XML Documents Ellen Pearlman Eileen Mullin Programming the Web.
Session: 4. © Aptech Ltd. 2Creating Hyperlinks and Anchors / Session 4  Describe hyperlinks  Explain absolute and relative paths  Explain how to hyperlink.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 2 Key Concepts 1 Copyright © Terry Felke-Morris.
Web Development & Design Foundations with HTML5 8th Edition
LINKS.
Presentation transcript:

Copyright © 2003 Pearson Education, Inc. Slide 6-1 Created by Cheryl M. Hughes, Harvard University Extension School Cambridge, MA The Web Wizards Guide to XML by Cheryl M. Hughes

Copyright © 2003 Pearson Education, Inc. Slide 6-2 CHAPTER 5 Links in XML

Copyright © 2003 Pearson Education, Inc. Slide 6-3 Overview of Hyperlinks A hyperlink in a web page is an object that a user can click on that will redirect the browser to another web page, file or position within the page Hyperlinks in HTML make the web interactive Links in XML are similar in syntax to links in the HTML language XML Linking Language (XLink) is the XML specification for linking The resource being linked to is called the target resource

Copyright © 2003 Pearson Education, Inc. Slide 6-4 Linking in HTML The anchor element Require the user to take an action – usually by clicking on the link, which can consist of images or text The target of the link can be an absolute or relative URL The element Does not require user intervention – resource loads automatically when page loads. Usually used for graphics in HTML

Copyright © 2003 Pearson Education, Inc. Slide 6-5 HTML Link Example: HTML file Link Examples in HTML Here are some examples of links in HTML: 7 8 This is an absolute link to a new page This is a relative link to a new page <img src=button.gif alt=This image is a clickable button> This is link that launches an message

Copyright © 2003 Pearson Education, Inc. Slide 6-6 HTML Link Example: Browser

Copyright © 2003 Pearson Education, Inc. Slide 6-7 HTML Link Limitations Can only point to one target resource Links are unidirectional – once the link is followed, there is no path back to the original document Only certain HTML elements can be used for providing linking functionality

Copyright © 2003 Pearson Education, Inc. Slide 6-8 XLink Overview The XLink specification was released by the W3C in July 2001 Benefits over HTML links: Supports multi-directional links, which allows the target resource to link back to the originating document Can contain multiple destinations Any XML element can be a linking element XML link behavior can be programmed XLink specification defines two types of links Simple links Extended links

Copyright © 2003 Pearson Education, Inc. Slide 6-9 Simple XLink Links Syntax is similar to HTML links Simple links are: Unidirectional Can only link to one target resource Can be defined on any XML element Defined as a namespace: Required attributes: href and type

Copyright © 2003 Pearson Education, Inc. Slide 6-10 Simple Links: Attributes type : Determines the type of link – for simple, the value is always simple href : Defines the URL of the target resource show : Defines the behavior of the link after it is activated actuate : Defines when the link will be activated role : Describes the resource being linked to title : Used to describe the link arcrole : Describes the relationship between the source and target documents

Copyright © 2003 Pearson Education, Inc. Slide 6-11 Simple XLink Example 1 2<map 3xmlns:xlink= 4xlink:type=simple 5xlink:href=mapimage.gif 6xlink:actuate=onRequest 7xlink:show=replace 8xlink:role=image 9xlink:title=A map image> 10Link to Map image 11

Copyright © 2003 Pearson Education, Inc. Slide 6-12 Simple XLink Example with DTD 1 2<!DOCTYPE map [ 3 4<!ATTLIST map 5xmlns:xlinkCDATA#FIXED 6xlink:typeCDATA#FIXED simple 7xlink:hrefCDATA#REQUIRED> 8]> 9 Link to Map image Attributes that are defined as #FIXED in the DTD do not have to be included in the XLink element

Copyright © 2003 Pearson Education, Inc. Slide 6-13 XLink Extended Links Extended links provide much greater functionality than simple links Extended links: Can link to multiple target resources Are multi-direction Extended links can be any of the following types: extended, resource, locator, arc or title

Copyright © 2003 Pearson Education, Inc. Slide 6-14 Extended XLink Example 1<courses xmlns:xlink= 2 xlink:type=extended> 3<locator xlink:type=locator 4 xlink:href=courses/xml101.xml 5 xlink:title=XML 101/> 6<locator xlink:type=locator 7 xlink:href=courses/advxml.xml 8 xlink:title=Advanced XML/> 9<locator xlink:type=locator 10 xlink:href=courses/bw.xml 11 xlink:title=Basket Weaving/> 12Link to Course 13

Copyright © 2003 Pearson Education, Inc. Slide 6-15 Extended XLink Example with DTD 1 2<!DOCTYPE map [ 3 4<!ATTLIST courses 5xmlns:xlinkCDATA#FIXED 6xlink:typeCDATA#FIXED extended> 7 8<!ATTLIST locator 9xlink:hrefCDATA#REQUIRED 10xlink:titleCDATA#IMPLIED> 11]> 12<courses xmlns:xlink= 13 xlink:type=extended> 14<locator xlink:type=locator 15 xlink:href=courses/xml101.xml 16 xlink:title=XML 101/> 17<locator xlink:type=locator 18 xlink:href=courses/advxml.xml 19 xlink:title=Advanced XML/> 20<locator xlink:type=locator 21 xlink:href=courses/bw.xml 22 xlink:title=Basket Weaving/> 23