SlideShare a Scribd company logo
6 html links
HTML Links
Text Links
Image Links
Email Links
A webpage can contain various links that take you directly to other
pages and even specific parts of a given page.
These links are known as hyperlinks.
Hyperlinks allow visitors to navigate between Web sites by clicking
on words, phrases, and images.
Thus you can create hyperlinks using text or images available on a
webpage.
Linking Document
<a href= “ www.classroomtech.in “ target attribute_list> Linked Text </a>
Target Attribute
This attribute is used to specify the location where linked document is opened.
Option Description
_blank Opens the linked document in a new window or tab.
_self Opens the linked document in the same frame.
_parent Opens the linked document in the parent frame.
_top Opens the linked document in the full body of the window.
targetframe Opens the linked document in a named targetframe.
Use of Base Path
We can use the relative path instead of using absolute path every time.
Use <base> tag in your HTML
document header.
This tag is used to give a base path
for all the links.
<!DOCTYPE html>
<html>
<head>
<title>Hyperlink Example</title>
<base href="http://www.classroomtech.in/">
</head>
<body>
<a href="/html/webseries.htm"
target="_blank">HTML Tutorial</a>
</body>
</html>
http://www.classroom.com /html/webseries.htm
Web Series – HTML and HTML5
Setting Link Colors
LINK, VLINK, and ALINK
LINK - initial appearance – default = Blue
VLINK - visited link – default = Purple
ALINK - active link being clicked – default = Red
These attributes control the colors of the different link states:
<BODY BGCOLOR=”#FFFFFF” TEXT=”#FF0000”
LINK=”#0000FF” VLINK=”#FF00FF” ALINK=”FFFF00”>
The results of the above BODY element would be a white background with
links being blue, visited links as magenta and active links colored in
yellow.
While you are working
in a webpage through
link it is active as soon
as u close that window
it becomes vlink.
Satyaki Das | Contact No. 8981838547 .
<a href="default.asp">
<img src=“student.png" style="width: 42px; height:42px; border:0;">
</a>
Use the <a> element to define a link
Use the href attribute to define the link address
Use the target attribute to define where to open the linked document
Use the <img> element (inside <a>) to use an image as a link
Use the id attribute (id="value") to define bookmarks in a page
Use the href attribute (href="#value") to link to the bookmark
<!DOCTYPE html>
<html>
<head>
<title>Hyperlink Example</title>
</head>
<body>
<a href = "https://www.classroom.in/page.pdf">Download PDF File</a>
</body>
</html>
Download Links
You can create text link to make your PDF, or
DOC or ZIP files downloadable. This is very
simple; you just need to give complete URL of
the downloadable file as follows

More Related Content

PPTX
Anchor tag HTML Presentation
PPTX
Anchors!
PDF
How to make a hyperlink in HTML code
PPTX
Html links
PPTX
Html hyperlinks
PPTX
How to make a website
PPT
Hyperlinks in HTML
PPTX
Links in Html
Anchor tag HTML Presentation
Anchors!
How to make a hyperlink in HTML code
Html links
Html hyperlinks
How to make a website
Hyperlinks in HTML
Links in Html

What's hot (19)

PDF
Html links
PPTX
HTML5 - create hyperlinks and anchors
PDF
HTML a Element: Link to External Page
PPTX
Hyperlink
PPT
Hour 3
 
PPTX
Sending link
PPTX
Html images syntax
PPTX
uptu web technology unit 2 html
PPTX
Web design - Working with Links and Images
PPTX
Introduction to linking
PPTX
How to create rss feed for your website
PPTX
How to create rss feed
PPTX
uptu web technology unit 2 html
PPTX
PaperClipPlus for Invoices
PPTX
Html links
PPT
HTML Linking Overview
PPTX
Css links
DOC
poornamatha : poornamitham poornath-poorna-muthatchyathe |
Html links
HTML5 - create hyperlinks and anchors
HTML a Element: Link to External Page
Hyperlink
Hour 3
 
Sending link
Html images syntax
uptu web technology unit 2 html
Web design - Working with Links and Images
Introduction to linking
How to create rss feed for your website
How to create rss feed
uptu web technology unit 2 html
PaperClipPlus for Invoices
Html links
HTML Linking Overview
Css links
poornamatha : poornamitham poornath-poorna-muthatchyathe |
Ad

Similar to 6 html links (20)

PPTX
htmllinks-191023021435.pptxaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
PPTX
646219547-Lecture-9-HTML-Text-Links.pptx
PPTX
HTML - Linking[1].ppt it is for class 10 students
PPSX
Computer language - html links
PPT
Html for beginners part II
PPTX
LINKING IN HTML
PPT
M02 un06 p02
PPTX
PPTX
Simple Presentation in Pink Lilac Pastel Blobs Basic Style.pptx.pptx
PPTX
HTML Basic Training for beginners - Learn HTML coding
PDF
Links in HTML AND CSS COMPREHENSIVE STUDY
PPTX
Links - IntraSystem and Absolute
PPTX
List and Links.pptx
PPTX
Part 1 -HTML- Basic_Spring 2023.pptx
PDF
02- Links, Structure and Layout with HTML.pdf
PPT
Introduction to HTML
PPTX
Html links
PPTX
Ch 6: Links
PPTX
Building Next Generation Websites Session4
htmllinks-191023021435.pptxaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
646219547-Lecture-9-HTML-Text-Links.pptx
HTML - Linking[1].ppt it is for class 10 students
Computer language - html links
Html for beginners part II
LINKING IN HTML
M02 un06 p02
Simple Presentation in Pink Lilac Pastel Blobs Basic Style.pptx.pptx
HTML Basic Training for beginners - Learn HTML coding
Links in HTML AND CSS COMPREHENSIVE STUDY
Links - IntraSystem and Absolute
List and Links.pptx
Part 1 -HTML- Basic_Spring 2023.pptx
02- Links, Structure and Layout with HTML.pdf
Introduction to HTML
Html links
Ch 6: Links
Building Next Generation Websites Session4
Ad

More from SatyakiDas12 (20)

PPTX
34 viewport
PPTX
33 meta
PPTX
32 track
PPTX
31 textarea
PPTX
30 ruby
PPTX
29 progress
PPTX
28 option
PPTX
27 iframe
PPTX
26 optgroup
PPTX
24 meter
PPTX
23 nav
PPTX
22 frameset
PPTX
21 form in_html
PPTX
20 embed
PPTX
19 div
PPTX
18 dialog open
PPTX
17 details summary
PPTX
16 dd dl_dt
PPTX
15 data list
PPTX
14 data tag
34 viewport
33 meta
32 track
31 textarea
30 ruby
29 progress
28 option
27 iframe
26 optgroup
24 meter
23 nav
22 frameset
21 form in_html
20 embed
19 div
18 dialog open
17 details summary
16 dd dl_dt
15 data list
14 data tag

Recently uploaded (20)

PDF
Classroom Observation Tools for Teachers
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PPTX
Lesson notes of climatology university.
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PPTX
Presentation on HIE in infants and its manifestations
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
Anesthesia in Laparoscopic Surgery in India
PPTX
Pharma ospi slides which help in ospi learning
PDF
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
PDF
Computing-Curriculum for Schools in Ghana
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PPTX
Institutional Correction lecture only . . .
PDF
RMMM.pdf make it easy to upload and study
PDF
Microbial disease of the cardiovascular and lymphatic systems
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
01-Introduction-to-Information-Management.pdf
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
Supply Chain Operations Speaking Notes -ICLT Program
Classroom Observation Tools for Teachers
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
human mycosis Human fungal infections are called human mycosis..pptx
Lesson notes of climatology university.
2.FourierTransform-ShortQuestionswithAnswers.pdf
Presentation on HIE in infants and its manifestations
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Anesthesia in Laparoscopic Surgery in India
Pharma ospi slides which help in ospi learning
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
Computing-Curriculum for Schools in Ghana
Chinmaya Tiranga quiz Grand Finale.pdf
Abdominal Access Techniques with Prof. Dr. R K Mishra
Institutional Correction lecture only . . .
RMMM.pdf make it easy to upload and study
Microbial disease of the cardiovascular and lymphatic systems
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
01-Introduction-to-Information-Management.pdf
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Supply Chain Operations Speaking Notes -ICLT Program

6 html links

  • 2. HTML Links Text Links Image Links Email Links A webpage can contain various links that take you directly to other pages and even specific parts of a given page. These links are known as hyperlinks. Hyperlinks allow visitors to navigate between Web sites by clicking on words, phrases, and images. Thus you can create hyperlinks using text or images available on a webpage. Linking Document <a href= “ www.classroomtech.in “ target attribute_list> Linked Text </a>
  • 3. Target Attribute This attribute is used to specify the location where linked document is opened. Option Description _blank Opens the linked document in a new window or tab. _self Opens the linked document in the same frame. _parent Opens the linked document in the parent frame. _top Opens the linked document in the full body of the window. targetframe Opens the linked document in a named targetframe.
  • 4. Use of Base Path We can use the relative path instead of using absolute path every time. Use <base> tag in your HTML document header. This tag is used to give a base path for all the links. <!DOCTYPE html> <html> <head> <title>Hyperlink Example</title> <base href="http://www.classroomtech.in/"> </head> <body> <a href="/html/webseries.htm" target="_blank">HTML Tutorial</a> </body> </html> http://www.classroom.com /html/webseries.htm Web Series – HTML and HTML5
  • 5. Setting Link Colors LINK, VLINK, and ALINK LINK - initial appearance – default = Blue VLINK - visited link – default = Purple ALINK - active link being clicked – default = Red These attributes control the colors of the different link states: <BODY BGCOLOR=”#FFFFFF” TEXT=”#FF0000” LINK=”#0000FF” VLINK=”#FF00FF” ALINK=”FFFF00”> The results of the above BODY element would be a white background with links being blue, visited links as magenta and active links colored in yellow. While you are working in a webpage through link it is active as soon as u close that window it becomes vlink. Satyaki Das | Contact No. 8981838547 .
  • 6. <a href="default.asp"> <img src=“student.png" style="width: 42px; height:42px; border:0;"> </a> Use the <a> element to define a link Use the href attribute to define the link address Use the target attribute to define where to open the linked document Use the <img> element (inside <a>) to use an image as a link Use the id attribute (id="value") to define bookmarks in a page Use the href attribute (href="#value") to link to the bookmark
  • 7. <!DOCTYPE html> <html> <head> <title>Hyperlink Example</title> </head> <body> <a href = "https://www.classroom.in/page.pdf">Download PDF File</a> </body> </html> Download Links You can create text link to make your PDF, or DOC or ZIP files downloadable. This is very simple; you just need to give complete URL of the downloadable file as follows