Session: 4. © Aptech Ltd. 2Creating Hyperlinks and Anchors / Session 4  Describe hyperlinks  Explain absolute and relative paths  Explain how to hyperlink.

Slides:



Advertisements
Similar presentations
The Web Wizards Guide to HTML Chapter Four All About Hyperlinks.
Advertisements

HTML III. Learning Objectives HTML Links Structuring Pages with Frames Introduction to Cascading Style Sheets (CSS)
Tutorial 1: Developing a Basic Web site
Web Development & Design Foundations with XHTML
Tutorial 1: Developing a Basic Web site
XP 1 Developing a Basic Web Site Tutorial 2: Web Site Structures & Links.
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 this lecture, you will learn: ❑ How to link between pages of your site ❑ How to link to other sites ❑ How to structure the folders on your web site.
HTML5 and CSS3 Illustrated Unit E: Inserting and Working with Links
Relative and Absolute Relative Absolute.  In web-page design, a hyperlink (or link) is a reference to a document that the reader can directly follow,
Links and Comments.
New Perspectives on Creating Web Pages with HTML
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.
CIS101 Introduction to Computing Week 06. Agenda Your questions Resume project HTML Project Two This week online Next class.
CIS101 Introduction to Computing HTML Project Two.
CM143 - Web Week 2 Basic HTML. Links and Image Tags.
 2008 Pearson Education, Inc. All rights reserved. 1 Introduction to HTML.
1 Linking Web Pages Why is Hypertext Hyper? Storyboarding Page Links (Site Map) Path to Files Various Links Click Here :( Page Footers.
CIS101 Introduction to Computing Week 06. Agenda Your questions Resume project HTML Project Two This week online Next class.
1 Linking Web Pages Why is Hypertext Hyper? Storyboarding Page Links (Site Map) Sequential and Indexed-Sequential Designs Hierarchical Design Custom Design.
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.
Lecture 13. A Very Brief Introduction to HTML and XHTML, part II Instructor: Jie Yang Department of Computer Science University of Massachusetts Lowell.
Chapter 2 Introduction to HTML5 Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
HTML Tags. Objectives Know the commonly used HTML tags Create a simple webpage using the HTML tags that will be discussed.
HTML Links and Anchors.
Copyright © Texas Education Agency, All rights reserved. 1 Web Technologies Website Development with Dreamweaver.
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.
Basic HTML Hyper text markup Language. Re-cap  … - The tag tells the browser that this is an HTML document The html element is the outermost element.
Web Technologies Website Development Trade & Industrial Education
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.
Informatics Computer School CS114 Web Publishing HTML Lesson 2.
Agenda Links External and Internet Links Anchor Tag Text Hyperlinks Image Hyperlinks Images Image Attributes: src, alt, width, height, align, border.
Hyperlinks. Linking pages…Hyperlinks 2 Lecture 8  Hyperlink “A clickable HTML element that will direct the web browser to display a different Web page.
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.
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.
Website Development with Dreamweaver
Section 4.1 Format HTML tags Identify HTML guidelines Section 4.2 Organize Web site files and folder Use a text editor Use HTML tags and attributes Create.
Linking web pages Wah Yan College (Hong Kong) Mr. Li C.P.
 The tag to create a link is called, which stands for anchor.  You put the address of the page to link to in quotes after href=, like the following:
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.
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.
XHTML1 Images N100 Building a Simple Web Page. XHTML2 The Element The src attribute specifies the filename of an image file To include the src attribute.
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.
XP 1 HTML Tutorial 2: Developing a Basic Web Site.
HTML Basic. What is HTML HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is not a programming language, it.
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.
Links Building a Website Lesson 5. Links There are various ways to use links on a website: Link to other sites Link to other pages on the same site .
HTML Comprehensive Concepts and Techniques Second Edition Project 2 Creating a Web Site with Links.
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.
REEM ALMOTIRI Information Technology Department Majmaah University.
Links and Images. Links HTML uses a hyperlink to link to another document on the Web A hyperlink can be either text or a picture Links are created with.
Hyperlink ● Anchor tag and its attributes ● Four Types of URL ─ ─ Absolute addressing ─ Relative addressing ─ Intrapage ● Attributes -- link, vlink,
`. Lecture Overview HTML Body Elements Linking techniques HyperText references Linking images Linking to locations on a page Linking to a fragment on.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 2 Key Concepts 1 Copyright © Terry Felke-Morris.
LISTS AND LINKS Explained By: Sarbjit Kaur. Lecturer, Department of Computer Application, PGG.C.G., Sector: 42, Chandigarh.
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.
HTML5 and CSS3 Illustrated Unit E: Inserting and Working with Links.
HTML Basics.
Links and Comments in HTML5
Web Development & Design Foundations with HTML5 8th Edition
LINKS.
Web Design and Development
Lesson 4: Hyperlinks.
HTML LINKS
Presentation transcript:

Session: 4

© Aptech Ltd. 2Creating Hyperlinks and Anchors / Session 4  Describe hyperlinks  Explain absolute and relative paths  Explain how to hyperlink to a Web page and address  Explain how to hyperlink to anchors and other content

© Aptech Ltd. 3Creating Hyperlinks and Anchors / Session 4  A hyperlink is referred to as a link, linking to another Web page or to a section in the same Web page.  The A (anchor) element is used to create a hyperlink.  One can specify a text or an image as a hyperlink.  When mouse is moved over such content, the cursor changes into a hand with its index finger pointing towards the content.  This means that clicking the link will take the user to the respective link.  To specify the linked page section or linked Web page, attributes of the A element have to be used.  Following table lists the attributes of the A element.

© Aptech Ltd. 4Creating Hyperlinks and Anchors / Session 4  The tag is used to provide a hyperlink.  This contains the href attribute that would contain the link to a URL or path of a Web page.  An example of a href attribute code is as follows: <a href=”  The description and reference text that will serve as a hyperlink must be provided before closing the tag by using.  An example of a hyperlink along with its output is as follows: <html> <head> </head> <body> <a href=” Click to view the Aptech Web site</a> </body> </html>

© Aptech Ltd. 5Creating Hyperlinks and Anchors / Session 4  The output of the example is shown in the following figure:

© Aptech Ltd. 6Creating Hyperlinks and Anchors / Session 4  The target attribute of the A element specifies the location where the linked Web page will open when a link is clicked.  One can assign values to the target attribute.  Following table lists some of the values of the target attribute.

© Aptech Ltd. 7Creating Hyperlinks and Anchors / Session 4  Absolute paths are links that contain the complete address to get to a Web page.  Absolute paths are the best way to link to a Web site.  The syntax of an absolute path is as follows: Syntax: <a href=” us/aboutus_aboutaptechworldwide.html “>Aptech Web site</a>  Relative paths are links that are provided when the files of a Web page are in the same folder as the page displaying the link.  The syntax of a relative path is as follows: Syntax: <a href=”aboutus_aboutaptechworldwide.html”> Aptech Web site</a>

© Aptech Ltd. 8Creating Hyperlinks and Anchors / Session 4  To link to the files present in the subfolder, you need to provide the path to the subfolder.  For example, if the file aboutus_aboutaptechworldwide.html is in a subfolder named about-us then the syntax is as follows: Syntax: <a href=”about-us/aboutus_aboutaptechworldwide.html”> Aptech Web site</a>  Files that are present in folders that are one level up can also be linked using a relative path. The syntax to link to a file one level up is as follows: Syntax: <a href=”../aboutus_aboutaptechworldwide.html”>Aptech Web site </a>

© Aptech Ltd. 9Creating Hyperlinks and Anchors / Session 4  Hyperlinks can be even applied to addresses in the same way as they can be given for Web pages.  There are various tasks that can be performed when a hyperlink is given to an , such as starting the default client, creating a new message, adding the subject line, and so on.  To add an to a hyperlink, the href attribute must be used and followed by mailto: address.  Following code snippet shows the way to hyperlink an address. <a Care</a>  To automatically add a subject line in the new message, the ?subject= attribute must be inserted after the address.  Following code snippet shows the way to add a subject line to a hyperlinked address. <a mail to Customer Care”>Customer Care</a>

© Aptech Ltd. 10Creating Hyperlinks and Anchors / Session 4  Hyperlinks can also be used to link to other files and documents.  Some commonly linked file types on Web pages using hyperlinks are zipped files (.zip), executable files (.exe), documents (.doc), PDF reader files (.pdf), and so on.  Hyperlinks can also be used to link to graphical.jpg and.gif files.  To specify a file instead of the Web page, the name of the file must be provided in the tag as shown in the following code snippet: <a href=”Compressed.zip”>Click to download the compressed zip file </a>

© Aptech Ltd. 11Creating Hyperlinks and Anchors / Session 4  A hyperlink is referred to as a link. It refers to linking to another Web page or to a section in the same Web page.  The A (anchor) element is used to create a hyperlink.  The target attribute of the A element specifies the location where the linked Web page will open when a link is clicked.  Absolute paths are links that contain the complete address to get to a Web page.  Relative paths are links that are provided when the files of a Web page are in the same folder as the page displaying the link.  To add an to a hyperlink, the href= attribute must be followed by mailto: address.  Hyperlinks can also be used to link to files and documents such as zipped files (.zip), executable files (.exe), documents (.doc), PDF reader files (.pdf), and so on.