SlideShare a Scribd company logo
1 of 11
CREATING HYPERLINKS AND
ANCHORS
SESSION 4
Aptech Computer Education
Presented by Muhammad Ehtisham Siddiqui (BSCS)
1
Objectives
 Describe hyperlinks
 Explain absolute and relative paths
 Explain how to hyperlink to a Web page and e-
mail address
 Explain how to hyperlink to anchors and other
content
Presented by Muhammad Ehtisham Siddiqui (BSCS)
2
Introduction of Hyperlink
Presented by Muhammad Ehtisham Siddiqui
(BSCS)
3
 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.
Introduction of Hyperlink
Presented by Muhammad Ehtisham Siddiqui
(BSCS)
4
 Following table lists the attributes of the A element
Attribute Description
href Specifies the URL of the Web page to be
linked or the value of the name attribute
hreflang Indicates the language of the destination URL
name Specifies the section of the Web page, which
is to be linked
How to use Hyperlink?
Presented by Muhammad Ehtisham Siddiqui (BSCS)
5
 The <a> 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=” http://www.aptech-worldwide.com/”>
 The description and reference text that will serve as a hyperlink must be
provided before closing the <a> tag by using </a>.
 An example of a hyperlink along with its output is as follows:
<html>
<head> <title>Hyperlink</title></head>
<body>
<a href=”http://www.aptech-woldwide.com/”>
Click to view the Aptech Web site</a> </body>
</html>
Target Attributes of HTML
Presented by Muhammad Ehtisham Siddiqui (BSCS)
6
 The target attribute specifies where to open the linked document.
 Different target attributes are as follows:
 https://www.w3schools.com/tags/att_a_target.asp
Value Description
_blank Opens the linked document in a new window or tab
_self Opens the linked document in the same frame as it was clicked
(this is default)
_parent Opens the linked document in the parent frame
_top Opens the linked document in the full body of the window
framename Opens the linked document in a named frame
HTML File Paths
Presented by Muhammad Ehtisham Siddiqui (BSCS)
7
 A file path describes the location of a file in a web site's
folder structure.
 File paths are used when linking to external files like:
 Web pages
 Images
 Style sheets
 JavaScripts
 There are 2 types of Files Paths as follows:
 Absolute File Paths
 Relative File Paths
HTML File Paths
Presented by Muhammad Ehtisham Siddiqui (BSCS)
8
 Absolute File Paths:
 An absolute file path is the full URL to an internet file
 Absolute paths are the best way to link to a Web site
 <img src="https://www.w3schools.com/images/picture.jpg" alt="Mountai
n">
 <a href=” http://www.aptech-
worldwide.com/pages/aboutus/aboutus_aboutaptechworldwide.html
“>Aptech Web site</a>
 Relative File Paths:
 A relative file path points to a file relative to the current 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
 <img src="images/picture.jpg" alt="Mountain">
 <a href=”aboutus_aboutaptechworldwide.html”> Aptech Web site</a>
Hyperlink to an Email Address
Presented by Muhammad Ehtisham Siddiqui (BSCS)
9
 Hyperlinks can be even applied to e-mail 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 e-mail, such as starting the default e-mail client, creating a
new message, adding the subject line, and so on.
 To add an e-mail to a hyperlink, the href attribute must be used and
followed by mailto:email address.
 Following code snippet shows the way to hyperlink an e-mail address
<a href=”mailto:customercare@aptech.ac.in”>Customer Care</a>
 To automatically add a subject line in the new e-mail message, the
?subject= attribute must be inserted after the e-mail address.
Hyperlink to Other Content Types
Presented by Muhammad Ehtisham Siddiqui (BSCS)
10
 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 <a> tag as shown in the following code snippet
 <a href=”Compressed.zip”>Click to download the compressed zip file </a>
 Creating a Phone Link :<a href="tel:+491570156">+49 157
0156</a>
Questions?
Presented by Muhammad Ehtisham Siddiqui (BSCS)
11

More Related Content

Similar to Session4

HTML5 - create hyperlinks and anchors
HTML5 - create hyperlinks and anchorsHTML5 - create hyperlinks and anchors
HTML5 - create hyperlinks and anchorsGrayzon Gonzales, LPT
 
Web topic 7 html tags for links
Web topic 7  html tags for linksWeb topic 7  html tags for links
Web topic 7 html tags for linksCK Yang
 
Anchor tag HTML Presentation
Anchor tag HTML PresentationAnchor tag HTML Presentation
Anchor tag HTML PresentationNimish Gupta
 
How to make a website
How to make a websiteHow to make a website
How to make a websitekierakeating
 
htmllinks-191023021435.pptxaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
htmllinks-191023021435.pptxaaaaaaaaaaaaaaaaaaaaaaaaaaaaahtmllinks-191023021435.pptxaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
htmllinks-191023021435.pptxaaaaaaaaaaaaaaaaaaaaaaaaaaaaaBhargaviGorde1
 
Html links
Html linksHtml links
Html linksJayjZens
 
Web design - Working with Links and Images
Web design - Working with Links and ImagesWeb design - Working with Links and Images
Web design - Working with Links and ImagesMustafa Kamel Mohammadi
 
Mengelola isi halaman web1 eng
Mengelola isi halaman web1 engMengelola isi halaman web1 eng
Mengelola isi halaman web1 engEko Supriyadi
 
Just Enough HTML for Fatwire
Just Enough HTML for FatwireJust Enough HTML for Fatwire
Just Enough HTML for FatwireKenneth Quandt
 
SEO Training in Mahabubnagar
SEO Training in MahabubnagarSEO Training in Mahabubnagar
SEO Training in MahabubnagarSubhash Malgam
 
Les5 Working With Hyperlinks
Les5 Working With HyperlinksLes5 Working With Hyperlinks
Les5 Working With Hyperlinksguevarra_2000
 
HTML Link - Image - Comments
HTML  Link - Image - CommentsHTML  Link - Image - Comments
HTML Link - Image - CommentsHameda Hurmat
 
331592291-HTML-and-Cascading style sheet
331592291-HTML-and-Cascading style sheet331592291-HTML-and-Cascading style sheet
331592291-HTML-and-Cascading style sheetstephen972973
 
HTML_Day_Two(W3Schools)
HTML_Day_Two(W3Schools)HTML_Day_Two(W3Schools)
HTML_Day_Two(W3Schools)Rafi Haidari
 
How to Create a College Website Page Using HTML
How to Create a College Website Page Using HTMLHow to Create a College Website Page Using HTML
How to Create a College Website Page Using HTMLYahyaMemon2
 

Similar to Session4 (20)

HTML5 - create hyperlinks and anchors
HTML5 - create hyperlinks and anchorsHTML5 - create hyperlinks and anchors
HTML5 - create hyperlinks and anchors
 
Web topic 7 html tags for links
Web topic 7  html tags for linksWeb topic 7  html tags for links
Web topic 7 html tags for links
 
Anchor tag HTML Presentation
Anchor tag HTML PresentationAnchor tag HTML Presentation
Anchor tag HTML Presentation
 
How to make a website
How to make a websiteHow to make a website
How to make a website
 
Html links
Html linksHtml links
Html links
 
htmllinks-191023021435.pptxaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
htmllinks-191023021435.pptxaaaaaaaaaaaaaaaaaaaaaaaaaaaaahtmllinks-191023021435.pptxaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
htmllinks-191023021435.pptxaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Html links
Html linksHtml links
Html links
 
Web design - Working with Links and Images
Web design - Working with Links and ImagesWeb design - Working with Links and Images
Web design - Working with Links and Images
 
Mengelola isi halaman web1 eng
Mengelola isi halaman web1 engMengelola isi halaman web1 eng
Mengelola isi halaman web1 eng
 
Just Enough HTML for Fatwire
Just Enough HTML for FatwireJust Enough HTML for Fatwire
Just Enough HTML for Fatwire
 
M02 un06 p01
M02 un06 p01M02 un06 p01
M02 un06 p01
 
SEO Training in Mahabubnagar
SEO Training in MahabubnagarSEO Training in Mahabubnagar
SEO Training in Mahabubnagar
 
Hyperlink
HyperlinkHyperlink
Hyperlink
 
how-to-create-links
how-to-create-linkshow-to-create-links
how-to-create-links
 
Les5 Working With Hyperlinks
Les5 Working With HyperlinksLes5 Working With Hyperlinks
Les5 Working With Hyperlinks
 
Sending link
Sending linkSending link
Sending link
 
HTML Link - Image - Comments
HTML  Link - Image - CommentsHTML  Link - Image - Comments
HTML Link - Image - Comments
 
331592291-HTML-and-Cascading style sheet
331592291-HTML-and-Cascading style sheet331592291-HTML-and-Cascading style sheet
331592291-HTML-and-Cascading style sheet
 
HTML_Day_Two(W3Schools)
HTML_Day_Two(W3Schools)HTML_Day_Two(W3Schools)
HTML_Day_Two(W3Schools)
 
How to Create a College Website Page Using HTML
How to Create a College Website Page Using HTMLHow to Create a College Website Page Using HTML
How to Create a College Website Page Using HTML
 

More from Muhammad Ehtisham Siddiqui

J Query (Complete Course) by Muhammad Ehtisham Siddiqui
J Query (Complete Course) by Muhammad Ehtisham SiddiquiJ Query (Complete Course) by Muhammad Ehtisham Siddiqui
J Query (Complete Course) by Muhammad Ehtisham SiddiquiMuhammad Ehtisham Siddiqui
 
Buiding Next Generation Websites Session 8 by Muhammad Ehtisham Siddiqui
Buiding Next Generation Websites Session 8 by Muhammad Ehtisham SiddiquiBuiding Next Generation Websites Session 8 by Muhammad Ehtisham Siddiqui
Buiding Next Generation Websites Session 8 by Muhammad Ehtisham SiddiquiMuhammad Ehtisham Siddiqui
 
Building Next Generation Websites Session 7 by Muhammad Ehtisham Siddiqui
Building Next Generation  Websites Session 7 by Muhammad Ehtisham SiddiquiBuilding Next Generation  Websites Session 7 by Muhammad Ehtisham Siddiqui
Building Next Generation Websites Session 7 by Muhammad Ehtisham SiddiquiMuhammad Ehtisham Siddiqui
 
Building Next Generation Websites Session 6 by Muhammad Ehtisham Siddiqui
Building Next Generation Websites Session 6 by Muhammad Ehtisham SiddiquiBuilding Next Generation Websites Session 6 by Muhammad Ehtisham Siddiqui
Building Next Generation Websites Session 6 by Muhammad Ehtisham SiddiquiMuhammad Ehtisham Siddiqui
 
Building Next Generation Websites by Muhammad Ehtisham Siddiqui
Building Next Generation Websites by Muhammad Ehtisham SiddiquiBuilding Next Generation Websites by Muhammad Ehtisham Siddiqui
Building Next Generation Websites by Muhammad Ehtisham SiddiquiMuhammad Ehtisham Siddiqui
 

More from Muhammad Ehtisham Siddiqui (20)

C programming Tutorial Session 4
C programming Tutorial Session 4C programming Tutorial Session 4
C programming Tutorial Session 4
 
C programming Tutorial Session 4
C programming Tutorial Session 4C programming Tutorial Session 4
C programming Tutorial Session 4
 
C programming Tutorial Session 3
C programming Tutorial Session 3C programming Tutorial Session 3
C programming Tutorial Session 3
 
C programming Tutorial Session 2
C programming Tutorial Session 2C programming Tutorial Session 2
C programming Tutorial Session 2
 
C programming Tutorial Session 1
C programming Tutorial Session 1C programming Tutorial Session 1
C programming Tutorial Session 1
 
HTML5 Web storage
HTML5 Web storageHTML5 Web storage
HTML5 Web storage
 
J Query (Complete Course) by Muhammad Ehtisham Siddiqui
J Query (Complete Course) by Muhammad Ehtisham SiddiquiJ Query (Complete Course) by Muhammad Ehtisham Siddiqui
J Query (Complete Course) by Muhammad Ehtisham Siddiqui
 
JavaScript Session 2
JavaScript Session 2JavaScript Session 2
JavaScript Session 2
 
JavaScript Session 3
JavaScript Session 3JavaScript Session 3
JavaScript Session 3
 
Javascript session 1
Javascript session 1Javascript session 1
Javascript session 1
 
Html audio video
Html audio videoHtml audio video
Html audio video
 
Html 5 geolocation api
Html 5 geolocation api Html 5 geolocation api
Html 5 geolocation api
 
Buiding Next Generation Websites Session 8 by Muhammad Ehtisham Siddiqui
Buiding Next Generation Websites Session 8 by Muhammad Ehtisham SiddiquiBuiding Next Generation Websites Session 8 by Muhammad Ehtisham Siddiqui
Buiding Next Generation Websites Session 8 by Muhammad Ehtisham Siddiqui
 
Building Next Generation Websites Session 7 by Muhammad Ehtisham Siddiqui
Building Next Generation  Websites Session 7 by Muhammad Ehtisham SiddiquiBuilding Next Generation  Websites Session 7 by Muhammad Ehtisham Siddiqui
Building Next Generation Websites Session 7 by Muhammad Ehtisham Siddiqui
 
Building Next Generation Websites Session 6 by Muhammad Ehtisham Siddiqui
Building Next Generation Websites Session 6 by Muhammad Ehtisham SiddiquiBuilding Next Generation Websites Session 6 by Muhammad Ehtisham Siddiqui
Building Next Generation Websites Session 6 by Muhammad Ehtisham Siddiqui
 
Building Next Generation Websites by Muhammad Ehtisham Siddiqui
Building Next Generation Websites by Muhammad Ehtisham SiddiquiBuilding Next Generation Websites by Muhammad Ehtisham Siddiqui
Building Next Generation Websites by Muhammad Ehtisham Siddiqui
 
Building Next Generation Websites Session6
Building Next Generation Websites Session6Building Next Generation Websites Session6
Building Next Generation Websites Session6
 
Building Next Generation Websites Session5
Building Next Generation Websites Session5Building Next Generation Websites Session5
Building Next Generation Websites Session5
 
Building Next Generation Websites Session4
Building Next Generation Websites Session4Building Next Generation Websites Session4
Building Next Generation Websites Session4
 
Office session14
Office session14Office session14
Office session14
 

Recently uploaded

Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsJhone kinadey
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...MyIntelliSource, Inc.
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Modelsaagamshah0812
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfkalichargn70th171
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVshikhaohhpro
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...kellynguyen01
 
why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfjoe51371421
 
Active Directory Penetration Testing, cionsystems.com.pdf
Active Directory Penetration Testing, cionsystems.com.pdfActive Directory Penetration Testing, cionsystems.com.pdf
Active Directory Penetration Testing, cionsystems.com.pdfCionsystems
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...gurkirankumar98700
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfkalichargn70th171
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Steffen Staab
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsAndolasoft Inc
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerThousandEyes
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...MyIntelliSource, Inc.
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️Delhi Call girls
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...panagenda
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providermohitmore19
 

Recently uploaded (20)

Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
Exploring iOS App Development: Simplifying the Process
Exploring iOS App Development: Simplifying the ProcessExploring iOS App Development: Simplifying the Process
Exploring iOS App Development: Simplifying the Process
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
 
why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdf
 
Active Directory Penetration Testing, cionsystems.com.pdf
Active Directory Penetration Testing, cionsystems.com.pdfActive Directory Penetration Testing, cionsystems.com.pdf
Active Directory Penetration Testing, cionsystems.com.pdf
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
 
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS LiveVip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.js
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 

Session4

  • 1. CREATING HYPERLINKS AND ANCHORS SESSION 4 Aptech Computer Education Presented by Muhammad Ehtisham Siddiqui (BSCS) 1
  • 2. Objectives  Describe hyperlinks  Explain absolute and relative paths  Explain how to hyperlink to a Web page and e- mail address  Explain how to hyperlink to anchors and other content Presented by Muhammad Ehtisham Siddiqui (BSCS) 2
  • 3. Introduction of Hyperlink Presented by Muhammad Ehtisham Siddiqui (BSCS) 3  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.
  • 4. Introduction of Hyperlink Presented by Muhammad Ehtisham Siddiqui (BSCS) 4  Following table lists the attributes of the A element Attribute Description href Specifies the URL of the Web page to be linked or the value of the name attribute hreflang Indicates the language of the destination URL name Specifies the section of the Web page, which is to be linked
  • 5. How to use Hyperlink? Presented by Muhammad Ehtisham Siddiqui (BSCS) 5  The <a> 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=” http://www.aptech-worldwide.com/”>  The description and reference text that will serve as a hyperlink must be provided before closing the <a> tag by using </a>.  An example of a hyperlink along with its output is as follows: <html> <head> <title>Hyperlink</title></head> <body> <a href=”http://www.aptech-woldwide.com/”> Click to view the Aptech Web site</a> </body> </html>
  • 6. Target Attributes of HTML Presented by Muhammad Ehtisham Siddiqui (BSCS) 6  The target attribute specifies where to open the linked document.  Different target attributes are as follows:  https://www.w3schools.com/tags/att_a_target.asp Value Description _blank Opens the linked document in a new window or tab _self Opens the linked document in the same frame as it was clicked (this is default) _parent Opens the linked document in the parent frame _top Opens the linked document in the full body of the window framename Opens the linked document in a named frame
  • 7. HTML File Paths Presented by Muhammad Ehtisham Siddiqui (BSCS) 7  A file path describes the location of a file in a web site's folder structure.  File paths are used when linking to external files like:  Web pages  Images  Style sheets  JavaScripts  There are 2 types of Files Paths as follows:  Absolute File Paths  Relative File Paths
  • 8. HTML File Paths Presented by Muhammad Ehtisham Siddiqui (BSCS) 8  Absolute File Paths:  An absolute file path is the full URL to an internet file  Absolute paths are the best way to link to a Web site  <img src="https://www.w3schools.com/images/picture.jpg" alt="Mountai n">  <a href=” http://www.aptech- worldwide.com/pages/aboutus/aboutus_aboutaptechworldwide.html “>Aptech Web site</a>  Relative File Paths:  A relative file path points to a file relative to the current 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  <img src="images/picture.jpg" alt="Mountain">  <a href=”aboutus_aboutaptechworldwide.html”> Aptech Web site</a>
  • 9. Hyperlink to an Email Address Presented by Muhammad Ehtisham Siddiqui (BSCS) 9  Hyperlinks can be even applied to e-mail 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 e-mail, such as starting the default e-mail client, creating a new message, adding the subject line, and so on.  To add an e-mail to a hyperlink, the href attribute must be used and followed by mailto:email address.  Following code snippet shows the way to hyperlink an e-mail address <a href=”mailto:customercare@aptech.ac.in”>Customer Care</a>  To automatically add a subject line in the new e-mail message, the ?subject= attribute must be inserted after the e-mail address.
  • 10. Hyperlink to Other Content Types Presented by Muhammad Ehtisham Siddiqui (BSCS) 10  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 <a> tag as shown in the following code snippet  <a href=”Compressed.zip”>Click to download the compressed zip file </a>  Creating a Phone Link :<a href="tel:+491570156">+49 157 0156</a>
  • 11. Questions? Presented by Muhammad Ehtisham Siddiqui (BSCS) 11

Editor's Notes

  1. Presentation slide for courses, classes, lectures et al.
  2. Beginning course details and/or books/materials needed for a class/project.
  3. Beginning course details and/or books/materials needed for a class/project.
  4. Beginning course details and/or books/materials needed for a class/project.
  5. Beginning course details and/or books/materials needed for a class/project.
  6. Beginning course details and/or books/materials needed for a class/project.
  7. Example graph/chart.