SlideShare a Scribd company logo
HTML Hyperlinks and HTML
Bookmarks
Presented by Nobel Mujuji
(BSc Hons Information Systems )(WUA)
Html links
Links are found in nearly all web pages. Links allow users to click their way from page to page.
HTML links are hyperlinks.
A hyperlink is an element, a text, or an image that you can click on, and jump to another
document.
HTML Links - Syntax
In HTML, links are defined with the <a> tag:
Link Syntax:
<a href="url">link text</a>
challenge
<html>
<body>
<p>
<a href=“www.facebook.com/Nokur technologies">visit us on
facebook</a>
</p>
</body>
</html>
• The href attribute specifies the destination page/ address
(www.facebook.com/Nokur technologies)
• The link text is the visible part (visit us on facebook).
Local Links
• The example above used an absolute URL (A full web address).
• A local link (link to the same web site) is specified with a relative URL
(without http://www....).
<a href="html_images.asp">HTML Images</a>
HTML Links - Colors and Icons
HTML Links - Colors and Icons
When you move the mouse cursor over a link, two things will normally happen:
1. The mouse arrow will turn into a little hand
2. The color of the link element will change
3. By default, links will appear as this in all browsers:
1. An unvisited link is underlined and blue
2. A visited link is underlined and purple
3. An active link is underlined and red
4. You can change the defaults, using styles:
The following are some of the things a
hyperlink can link to
Function Sample Code
Web Page or Site
<a
href="http://www.webaddress.com/folder/page">Hyp
erlink Text</a>
Local Page <a href="pagename.html">Hyperlink Text</a>
Local Page in a Folder level Below
<a href="foldername/pagename.html">Hyperlink
Text</a>
Local Page in a Folder level Above <a href="../pagename.html">Hyperlink Text</a>
Open E-mail Program with E-mail address
<a
href="mailto:yourname@yourname.com">Hyperlink
Text</a>
Bookmarked Section <a href="#bookmarkname"></a>
Bookmarked Section in Another Page
<a
href="pagelocation.htm#bookmarkname">Hyperlink
Text</a>
html - email links
• Creating an email link is simple. If you want people to mail you about
your site, a good way to do it is place an email link with a subject line
already filled out for them.
• HTML Email Link Code:
• <a href="mailto:email@gmail.com?subject=Feedback" >email
me</a>
First web project
NB create a folder name it SA Flag project
*Save all your pages in this folder as follows(folder should contain 7 pages as follows)
1. Home.html
2. Black.html
3. Yellow.html
4. Blue.html
5. Red.html
6. White.html
7. Green.html
Home.html
<hr size="10" noshade color=blue>
<center><h1><font color="red"> WELCOME TO SOUTH
AFRICA</H1></FONT></center>
<center>
<hr size="10" noshade color=green>
<a href="green.html"> green page| </a>
<a href="red.html"> red page| </a>
<a href="yellow.html"> yellow page| </a>
<a href="black.html"> black page| </a>
<a href="blue.html"> blue page| </a>
<a href="white.html"> white page|</a></center>
Black.html
<a href=“home.html"> go to home page| </a>
<body bgcolor=“black”>
Yellow.html
<a href=“home.html"> go to home page| </a>
<body bgcolor=“yellow”>
Blue.html
<a href=“home.html"> go to home page| </a>
<body bgcolor=“blue”>
Red.html
<a href=“home.html"> go to home page| </a>
<body bgcolor=“black”>
White.html
<a href=“home.html"> go to home page| </a>
<body bgcolor=“white”>
Green.html
<a href=“home.html"> go to home page| </a>
<body bgcolor=“green”>
An Image Link
• Here's an image. Its name is sally.gif. I will use it as a link to the HTML
Goodies page.
• To replace the text above with the sally.gif image, you simply replace
the text that would appear on the page with an image command
calling for the sally.gif image. Like so:
<A HREF="index.html"><IMG SRC="sally.gif"></A>
The HTML <hr> tag also supports following
attributes:
Attribute Value Description
align left
right
center
Deprecated-Specifies the alignment of the horizontal rule.
noshade noshade Deprecated-Removes the usual shading effect that most
browsers display.
size pixels or % Deprecated-Specifies the height of the horizontal rule.
width pixels or % Deprecated-Specifies the width of the horizontal rule.

More Related Content

PPTX
Complete Lecture on Css presentation
PPTX
Introduction to CSS
PPTX
Html links
PPTX
HTML Forms
PPTX
HTML, CSS and Java Scripts Basics
PDF
Html forms
PPTX
Cascading style sheets (CSS)
PDF
Introduction to html
Complete Lecture on Css presentation
Introduction to CSS
Html links
HTML Forms
HTML, CSS and Java Scripts Basics
Html forms
Cascading style sheets (CSS)
Introduction to html

What's hot (20)

PPTX
HTML/HTML5
PPTX
An Overview of HTML, CSS & Java Script
PPTX
Introduction to Html
PDF
Intro to HTML & CSS
PPT
Css lecture notes
PPTX
HTTP request and response
PPTX
World wide web architecture presentation
PPTX
Form Validation in JavaScript
PPT
introduction to web technology
PPT
cascading style sheet ppt
PPTX
Bootstrap PPT Part - 2
PPTX
Database Connectivity in PHP
PPTX
Ado.Net Tutorial
ODP
Introduction of Html/css/js
PPTX
html-table
PPTX
Basics of the Web Platform
PPTX
Cascading style sheets (CSS-Web Technology)
PPT
Hyperlinks in HTML
HTML/HTML5
An Overview of HTML, CSS & Java Script
Introduction to Html
Intro to HTML & CSS
Css lecture notes
HTTP request and response
World wide web architecture presentation
Form Validation in JavaScript
introduction to web technology
cascading style sheet ppt
Bootstrap PPT Part - 2
Database Connectivity in PHP
Ado.Net Tutorial
Introduction of Html/css/js
html-table
Basics of the Web Platform
Cascading style sheets (CSS-Web Technology)
Hyperlinks in HTML
Ad

Viewers also liked (14)

DOC
Reflexion
PDF
How to make a hyperlink in HTML code
PPTX
PDF
HTML a Element: Link to External Page
PPTX
Links - IntraPage
PDF
Html links
KEY
Working with HTML Lists
PPTX
HTML Link - Image - Comments
PPTX
Links in Html
PPTX
LINKING IN HTML
PPTX
Anchor tag HTML Presentation
PPTX
Html images and html backgrounds
PPTX
List and images in html
PPTX
Images and Lists in HTML
Reflexion
How to make a hyperlink in HTML code
HTML a Element: Link to External Page
Links - IntraPage
Html links
Working with HTML Lists
HTML Link - Image - Comments
Links in Html
LINKING IN HTML
Anchor tag HTML Presentation
Html images and html backgrounds
List and images in html
Images and Lists in HTML
Ad

Similar to Html hyperlinks (20)

PPTX
htmllinks-191023021435.pptxaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
PPTX
646219547-Lecture-9-HTML-Text-Links.pptx
PPT
Html for beginners part II
PPTX
Web design - Working with Links and Images
PPT
Hyperlink.85 to 86
PPT
Lesson 3: Linking It All Together
PDF
Basic HTML Tutorial For Beginners
PPTX
How to make a website
PPTX
Links - IntraSystem and Absolute
PDF
02- Links, Structure and Layout with HTML.pdf
PPTX
PPTX
6 html links
PPTX
List and Links.pptx
PPT
Lecture1and2
PPTX
HTML Bootcamp
PDF
Links in HTML AND CSS COMPREHENSIVE STUDY
PDF
Understanding HTML: Creating Text Links for Navigation and Image Links for In...
PPTX
Html links
PDF
What is HTML Hyperlinks and HTML Images?
htmllinks-191023021435.pptxaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
646219547-Lecture-9-HTML-Text-Links.pptx
Html for beginners part II
Web design - Working with Links and Images
Hyperlink.85 to 86
Lesson 3: Linking It All Together
Basic HTML Tutorial For Beginners
How to make a website
Links - IntraSystem and Absolute
02- Links, Structure and Layout with HTML.pdf
6 html links
List and Links.pptx
Lecture1and2
HTML Bootcamp
Links in HTML AND CSS COMPREHENSIVE STUDY
Understanding HTML: Creating Text Links for Navigation and Image Links for In...
Html links
What is HTML Hyperlinks and HTML Images?

More from nobel mujuji (14)

PPTX
Table structure introduction
PPTX
Positioning text
PPTX
Inserting imagesin html
PPTX
Html frames
PPTX
Html forms
PPTX
Html character entities
PPTX
Horizontal lines!
PPT
Frames tables forms
PPTX
Creating lists
PPTX
Chapter 2 introduction to html5
PPTX
Chapter 1 one html
PPTX
Chapter 1 html
PPTX
Adding text in html
PPTX
Javascript conditional statements
Table structure introduction
Positioning text
Inserting imagesin html
Html frames
Html forms
Html character entities
Horizontal lines!
Frames tables forms
Creating lists
Chapter 2 introduction to html5
Chapter 1 one html
Chapter 1 html
Adding text in html
Javascript conditional statements

Recently uploaded (20)

PPT
UNIT I- Yarn, types, explanation, process
PPTX
mahatma gandhi bus terminal in india Case Study.pptx
PDF
YOW2022-BNE-MinimalViableArchitecture.pdf
PPTX
Tenders & Contracts Works _ Services Afzal.pptx
PDF
Emailing DDDX-MBCaEiB.pdf DDD_Europe_2022_Intro_to_Context_Mapping_pdf-165590...
PDF
BRANDBOOK-Presidential Award Scheme-Kenya-2023
DOCX
actividad 20% informatica microsoft project
PPTX
Entrepreneur intro, origin, process, method
PPTX
12. Community Pharmacy and How to organize it
PPTX
Media And Information Literacy for Grade 12
PPTX
6- Architecture design complete (1).pptx
PPTX
LITERATURE CASE STUDY DESIGN SEMESTER 5.pptx
PPTX
HPE Aruba-master-icon-library_052722.pptx
PPTX
Fundamental Principles of Visual Graphic Design.pptx
PPTX
joggers park landscape assignment bandra
PDF
Key Trends in Website Development 2025 | B3AITS - Bow & 3 Arrows IT Solutions
PPTX
Complete Guide to Microsoft PowerPoint 2019 – Features, Tools, and Tips"
DOCX
The story of the first moon landing.docx
PPTX
CLASS_11_BUSINESS_STUDIES_PPT_CHAPTER_1_Business_Trade_Commerce.pptx
PDF
Facade & Landscape Lighting Techniques and Trends.pptx.pdf
UNIT I- Yarn, types, explanation, process
mahatma gandhi bus terminal in india Case Study.pptx
YOW2022-BNE-MinimalViableArchitecture.pdf
Tenders & Contracts Works _ Services Afzal.pptx
Emailing DDDX-MBCaEiB.pdf DDD_Europe_2022_Intro_to_Context_Mapping_pdf-165590...
BRANDBOOK-Presidential Award Scheme-Kenya-2023
actividad 20% informatica microsoft project
Entrepreneur intro, origin, process, method
12. Community Pharmacy and How to organize it
Media And Information Literacy for Grade 12
6- Architecture design complete (1).pptx
LITERATURE CASE STUDY DESIGN SEMESTER 5.pptx
HPE Aruba-master-icon-library_052722.pptx
Fundamental Principles of Visual Graphic Design.pptx
joggers park landscape assignment bandra
Key Trends in Website Development 2025 | B3AITS - Bow & 3 Arrows IT Solutions
Complete Guide to Microsoft PowerPoint 2019 – Features, Tools, and Tips"
The story of the first moon landing.docx
CLASS_11_BUSINESS_STUDIES_PPT_CHAPTER_1_Business_Trade_Commerce.pptx
Facade & Landscape Lighting Techniques and Trends.pptx.pdf

Html hyperlinks

  • 1. HTML Hyperlinks and HTML Bookmarks Presented by Nobel Mujuji (BSc Hons Information Systems )(WUA)
  • 2. Html links Links are found in nearly all web pages. Links allow users to click their way from page to page. HTML links are hyperlinks. A hyperlink is an element, a text, or an image that you can click on, and jump to another document. HTML Links - Syntax In HTML, links are defined with the <a> tag: Link Syntax: <a href="url">link text</a>
  • 4. • The href attribute specifies the destination page/ address (www.facebook.com/Nokur technologies) • The link text is the visible part (visit us on facebook).
  • 5. Local Links • The example above used an absolute URL (A full web address). • A local link (link to the same web site) is specified with a relative URL (without http://www....). <a href="html_images.asp">HTML Images</a>
  • 6. HTML Links - Colors and Icons HTML Links - Colors and Icons When you move the mouse cursor over a link, two things will normally happen: 1. The mouse arrow will turn into a little hand 2. The color of the link element will change 3. By default, links will appear as this in all browsers: 1. An unvisited link is underlined and blue 2. A visited link is underlined and purple 3. An active link is underlined and red 4. You can change the defaults, using styles:
  • 7. The following are some of the things a hyperlink can link to Function Sample Code Web Page or Site <a href="http://www.webaddress.com/folder/page">Hyp erlink Text</a> Local Page <a href="pagename.html">Hyperlink Text</a> Local Page in a Folder level Below <a href="foldername/pagename.html">Hyperlink Text</a> Local Page in a Folder level Above <a href="../pagename.html">Hyperlink Text</a> Open E-mail Program with E-mail address <a href="mailto:yourname@yourname.com">Hyperlink Text</a> Bookmarked Section <a href="#bookmarkname"></a> Bookmarked Section in Another Page <a href="pagelocation.htm#bookmarkname">Hyperlink Text</a>
  • 8. html - email links • Creating an email link is simple. If you want people to mail you about your site, a good way to do it is place an email link with a subject line already filled out for them. • HTML Email Link Code: • <a href="mailto:email@gmail.com?subject=Feedback" >email me</a>
  • 9. First web project NB create a folder name it SA Flag project *Save all your pages in this folder as follows(folder should contain 7 pages as follows) 1. Home.html 2. Black.html 3. Yellow.html 4. Blue.html 5. Red.html 6. White.html 7. Green.html
  • 10. Home.html <hr size="10" noshade color=blue> <center><h1><font color="red"> WELCOME TO SOUTH AFRICA</H1></FONT></center> <center> <hr size="10" noshade color=green> <a href="green.html"> green page| </a> <a href="red.html"> red page| </a> <a href="yellow.html"> yellow page| </a> <a href="black.html"> black page| </a> <a href="blue.html"> blue page| </a> <a href="white.html"> white page|</a></center>
  • 11. Black.html <a href=“home.html"> go to home page| </a> <body bgcolor=“black”>
  • 12. Yellow.html <a href=“home.html"> go to home page| </a> <body bgcolor=“yellow”>
  • 13. Blue.html <a href=“home.html"> go to home page| </a> <body bgcolor=“blue”>
  • 14. Red.html <a href=“home.html"> go to home page| </a> <body bgcolor=“black”>
  • 15. White.html <a href=“home.html"> go to home page| </a> <body bgcolor=“white”>
  • 16. Green.html <a href=“home.html"> go to home page| </a> <body bgcolor=“green”>
  • 17. An Image Link • Here's an image. Its name is sally.gif. I will use it as a link to the HTML Goodies page. • To replace the text above with the sally.gif image, you simply replace the text that would appear on the page with an image command calling for the sally.gif image. Like so: <A HREF="index.html"><IMG SRC="sally.gif"></A>
  • 18. The HTML <hr> tag also supports following attributes: Attribute Value Description align left right center Deprecated-Specifies the alignment of the horizontal rule. noshade noshade Deprecated-Removes the usual shading effect that most browsers display. size pixels or % Deprecated-Specifies the height of the horizontal rule. width pixels or % Deprecated-Specifies the width of the horizontal rule.