SlideShare a Scribd company logo
! 
Copyright 2014 Lon Hosford. All Rights Reserved. www.lonhosford.com 
This is the voice transcript and screen captures from the video for this portion of the course. 
! 
!
In this exercise we learn how to add external hyperlinks to text content in a web page. 
!
We will create links to the Wikipedia website. One to their World Wide Web page, and one to their 
Hyperlink web page. 
!
We use the anchor tag. Its tag name is simply the letter a. 
!
It requires the href attribute to specify the URL of the external web page. 
!
By default the external web page replaces our page in the web browser's tab window. 
We can also open the external page in a new web browser tab window. 
!
We do this using the target attribute set to the underscore blank value. 
!
And we will test and explore how these choices work the web browser. 
!
To follow along, here is how to get set up. 
!
This is our snippets file and starting HTML practice file. 
The HTML is simple, but lets take a fast tour. 
!
There is one h1 element for the page heading. 
!
And there are several p elements. They have informative content about the anchor element. 
!
The styling is internal to the document. 
It just covers the basic CSS we need. 
!
To start we are going to make the text, World Wide Web, in the first paragraph a hyperlink. 
! 
!
We will link to the Wikipedia web page about the World Wide Web. 
!
Don't worry. We do not try to type other web site's URLs. We usually just copy them from the web browser 
address bar. 
!
Start with step 1 in the snippets file. 
Type before the text, the open angle bracket, the letter a for the anchor tag and a space. 
Then add the href attribute, the equals symbol and one double quote mark. 
!
Now we can copy and paste the URL from step 2. 
!
Then step 3 finishes the href attribute and the open "a" tag with a double quote and the close angle 
bracket. 
!
Next we need to add the close tag for the "a" element. 
That goes after the text we are using for the hyperlink. 
Follow step 4 and type the open angle bracket, the forward slash, the letter "a" and the close angle 
bracket. 
!
When you open your page in the web browser, you will see that the link text is underlined by default. 
!
If you have not visited the link before in the web browser that you are using, the default link text color is 
traditionally blue. 
!
When you hover the mouse over the link, the mouse pointer shows that the text can be clicked. 
!
Click the link and the Wikipedia web page will appear in the same tab window as your web page. 
!
When you examine the previous page button's drop down menu, you can see that your web page title 
element appears as the previous page. 
!
When you return to your web page, the link text shows the default color for a visited URL. Traditionally 
this is a purple color. 
!
This means that the URL for the hyperlink is in the web browser's history. 
One way to see that is to look at the drop down menu for the next page button. 
!
Next we are going to open the web page in a new tab window. 
Follow step 5 and after the ending double quote for the URL, add a space, then type the target attribute, 
and the equals symbol. 
The value is an underscore and the word blank inside of double quotes. 
!
Refresh the web page and click the hyperlink. 
!
Now you are not only taken to the Wikipedia page, but it will appear in a new tab window. 
This particular page also has links that can take the visitor onward to other pages. 
!
But your web page is still active in the original tab window. 
So the visitor can easily return to it regardless of what happens on the external web page's tab. 
You can leave both tabs open for now. 
!
Lets try one more for practice. 
This time we will make the word hyperlink a hyperlink. 
!
And we will link it to the Wikipedia page about hyperlinks. 
!
Type the code in step 6 before the word hyperlink. 
!
Next paste in the URL from step 7. 
!
Now step 8 finishes the href attribute with the double quote. 
Then add a space and the target attribute with the value of underscore blank enclosed by double quotes 
followed by the close angle bracket. 
!
Then the last step adds the close anchor element tag after the word hyperlink. 
You can save your work. 
!
Refresh the page. 
You will see the first hyperlink shows the visited color and our new hyperlink shows the unvisited color. 
These default styling behaviors can be changed using CSS. 
!
Click the new hyperlink and the Wikipedia page opens in a new tab. 
!
If you left the first Wikipedia page open, you see its tab is still available. 
!
Going back to your web page's tab, you see that the link text color is now showing that the page was 
visited, 
!
That does it for this exercise. 
You created the anchor element with link text. 
!
You learned to copy the external web page's URL and paste into your HTML code. 
That is a surefire way to avoid typos and headaches. 
!
The target attribute is useful for opening external web pages in other tab windows. This keeps your web 
page handy for your visitor's return. 
!
Our testing revealed the default styling. 
! 
!
This included underlined text along with the traditional color states of visited and unvisited hyperlinks. 
!
The visited state merely means that the URL is in the web browser's history. 
!
The web browser may clear its history based on the user expiration preferences. 
Or the user can choose to clear the web browser's history. 
!
Finally we saw the linked web pages opened in new web browser tab windows. 
!
Copyright 2014 Lon Hosford. All Rights Reserved. www.lonhosford.com 
This is the voice transcript and screen captures from the video for this portion of the course.

More Related Content

PDF
How to make a hyperlink in HTML code
PPT
Hyperlinks in HTML
PDF
Html links
PPTX
Anchors!
PPTX
Links in Html
PPTX
Links - IntraPage
PPTX
Html hyperlinks
PPTX
Html links
How to make a hyperlink in HTML code
Hyperlinks in HTML
Html links
Anchors!
Links in Html
Links - IntraPage
Html hyperlinks
Html links

What's hot (17)

PPTX
Hyperlink
PPTX
LINKING IN HTML
PPTX
HTML Link - Image - Comments
PPTX
6 html links
PPTX
HTML_Day_Two(W3Schools)
PPTX
Html_Day_One (W3Schools)
PPT
Html for beginners part II
PPTX
Presentation on HTML
PPT
Hour 3
 
PPTX
Pres
PDF
Basic HTML Tutorial For Beginners
PPT
Xhtml Part1
PPTX
Web development Training in Ambala ! Batra Computer Centre
PPT
Introduction to HTML
PPT
Xhtml Part2
PPTX
Tags10x10
Hyperlink
LINKING IN HTML
HTML Link - Image - Comments
6 html links
HTML_Day_Two(W3Schools)
Html_Day_One (W3Schools)
Html for beginners part II
Presentation on HTML
Hour 3
 
Pres
Basic HTML Tutorial For Beginners
Xhtml Part1
Web development Training in Ambala ! Batra Computer Centre
Introduction to HTML
Xhtml Part2
Tags10x10
Ad

Viewers also liked (7)

DOC
Reflexion
PPTX
Html tags
ODP
The Basics of (X)HTML Tags
PPT
HTML Tags
PPTX
Html and its tags
PPT
HTML Tags
ODP
Reflexion
Html tags
The Basics of (X)HTML Tags
HTML Tags
Html and its tags
HTML Tags
Ad

Similar to HTML a Element: Link to External Page (20)

PPTX
htmllinks-191023021435.pptxaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
PPTX
PDF
02- Links, Structure and Layout with HTML.pdf
PPTX
HTML5 - create hyperlinks and anchors
PPTX
HTML - Linking[1].ppt it is for class 10 students
PPT
Internet with HTML
PPTX
Introduction to linking
PPTX
How to make a website
PDF
"Innovative Web Design & Development Hub
PPT
M02 un06 p02
PPTX
646219547-Lecture-9-HTML-Text-Links.pptx
PPTX
Web-02-HTML.pptx
PPT
Hyperlink.85 to 86
PPTX
Links - IntraSystem and Absolute
PPTX
Web design - Working with Links and Images
PPTX
Part 1 -HTML- Basic_Spring 2023.pptx
DOCX
HTML Lab ProjectTo create a simple web page you will need .docx
PPTX
HTML Basic Training for beginners - Learn HTML coding
DOCX
Html basic
htmllinks-191023021435.pptxaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
02- Links, Structure and Layout with HTML.pdf
HTML5 - create hyperlinks and anchors
HTML - Linking[1].ppt it is for class 10 students
Internet with HTML
Introduction to linking
How to make a website
"Innovative Web Design & Development Hub
M02 un06 p02
646219547-Lecture-9-HTML-Text-Links.pptx
Web-02-HTML.pptx
Hyperlink.85 to 86
Links - IntraSystem and Absolute
Web design - Working with Links and Images
Part 1 -HTML- Basic_Spring 2023.pptx
HTML Lab ProjectTo create a simple web page you will need .docx
HTML Basic Training for beginners - Learn HTML coding
Html basic

Recently uploaded (20)

PPTX
Digital Literacy And Online Safety on internet
PPTX
SAP Ariba Sourcing PPT for learning material
PPTX
Module 1 - Cyber Law and Ethics 101.pptx
PDF
Cloud-Scale Log Monitoring _ Datadog.pdf
PDF
FINAL CALL-6th International Conference on Networks & IOT (NeTIOT 2025)
PDF
Smart Home Technology for Health Monitoring (www.kiu.ac.ug)
PPT
Design_with_Watersergyerge45hrbgre4top (1).ppt
PDF
💰 𝐔𝐊𝐓𝐈 𝐊𝐄𝐌𝐄𝐍𝐀𝐍𝐆𝐀𝐍 𝐊𝐈𝐏𝐄𝐑𝟒𝐃 𝐇𝐀𝐑𝐈 𝐈𝐍𝐈 𝟐𝟎𝟐𝟓 💰
PDF
Sims 4 Historia para lo sims 4 para jugar
PPT
tcp ip networks nd ip layering assotred slides
PPTX
Mathew Digital SEO Checklist Guidlines 2025
PPTX
Internet___Basics___Styled_ presentation
PPTX
Introuction about ICD -10 and ICD-11 PPT.pptx
PPTX
artificial intelligence overview of it and more
PPTX
522797556-Unit-2-Temperature-measurement-1-1.pptx
PPTX
introduction about ICD -10 & ICD-11 ppt.pptx
PDF
The New Creative Director: How AI Tools for Social Media Content Creation Are...
DOCX
Unit-3 cyber security network security of internet system
PPTX
Funds Management Learning Material for Beg
PDF
SASE Traffic Flow - ZTNA Connector-1.pdf
Digital Literacy And Online Safety on internet
SAP Ariba Sourcing PPT for learning material
Module 1 - Cyber Law and Ethics 101.pptx
Cloud-Scale Log Monitoring _ Datadog.pdf
FINAL CALL-6th International Conference on Networks & IOT (NeTIOT 2025)
Smart Home Technology for Health Monitoring (www.kiu.ac.ug)
Design_with_Watersergyerge45hrbgre4top (1).ppt
💰 𝐔𝐊𝐓𝐈 𝐊𝐄𝐌𝐄𝐍𝐀𝐍𝐆𝐀𝐍 𝐊𝐈𝐏𝐄𝐑𝟒𝐃 𝐇𝐀𝐑𝐈 𝐈𝐍𝐈 𝟐𝟎𝟐𝟓 💰
Sims 4 Historia para lo sims 4 para jugar
tcp ip networks nd ip layering assotred slides
Mathew Digital SEO Checklist Guidlines 2025
Internet___Basics___Styled_ presentation
Introuction about ICD -10 and ICD-11 PPT.pptx
artificial intelligence overview of it and more
522797556-Unit-2-Temperature-measurement-1-1.pptx
introduction about ICD -10 & ICD-11 ppt.pptx
The New Creative Director: How AI Tools for Social Media Content Creation Are...
Unit-3 cyber security network security of internet system
Funds Management Learning Material for Beg
SASE Traffic Flow - ZTNA Connector-1.pdf

HTML a Element: Link to External Page

  • 1. ! Copyright 2014 Lon Hosford. All Rights Reserved. www.lonhosford.com This is the voice transcript and screen captures from the video for this portion of the course. ! !
  • 2. In this exercise we learn how to add external hyperlinks to text content in a web page. !
  • 3. We will create links to the Wikipedia website. One to their World Wide Web page, and one to their Hyperlink web page. !
  • 4. We use the anchor tag. Its tag name is simply the letter a. !
  • 5. It requires the href attribute to specify the URL of the external web page. !
  • 6. By default the external web page replaces our page in the web browser's tab window. We can also open the external page in a new web browser tab window. !
  • 7. We do this using the target attribute set to the underscore blank value. !
  • 8. And we will test and explore how these choices work the web browser. !
  • 9. To follow along, here is how to get set up. !
  • 10. This is our snippets file and starting HTML practice file. The HTML is simple, but lets take a fast tour. !
  • 11. There is one h1 element for the page heading. !
  • 12. And there are several p elements. They have informative content about the anchor element. !
  • 13. The styling is internal to the document. It just covers the basic CSS we need. !
  • 14. To start we are going to make the text, World Wide Web, in the first paragraph a hyperlink. ! !
  • 15. We will link to the Wikipedia web page about the World Wide Web. !
  • 16. Don't worry. We do not try to type other web site's URLs. We usually just copy them from the web browser address bar. !
  • 17. Start with step 1 in the snippets file. Type before the text, the open angle bracket, the letter a for the anchor tag and a space. Then add the href attribute, the equals symbol and one double quote mark. !
  • 18. Now we can copy and paste the URL from step 2. !
  • 19. Then step 3 finishes the href attribute and the open "a" tag with a double quote and the close angle bracket. !
  • 20. Next we need to add the close tag for the "a" element. That goes after the text we are using for the hyperlink. Follow step 4 and type the open angle bracket, the forward slash, the letter "a" and the close angle bracket. !
  • 21. When you open your page in the web browser, you will see that the link text is underlined by default. !
  • 22. If you have not visited the link before in the web browser that you are using, the default link text color is traditionally blue. !
  • 23. When you hover the mouse over the link, the mouse pointer shows that the text can be clicked. !
  • 24. Click the link and the Wikipedia web page will appear in the same tab window as your web page. !
  • 25. When you examine the previous page button's drop down menu, you can see that your web page title element appears as the previous page. !
  • 26. When you return to your web page, the link text shows the default color for a visited URL. Traditionally this is a purple color. !
  • 27. This means that the URL for the hyperlink is in the web browser's history. One way to see that is to look at the drop down menu for the next page button. !
  • 28. Next we are going to open the web page in a new tab window. Follow step 5 and after the ending double quote for the URL, add a space, then type the target attribute, and the equals symbol. The value is an underscore and the word blank inside of double quotes. !
  • 29. Refresh the web page and click the hyperlink. !
  • 30. Now you are not only taken to the Wikipedia page, but it will appear in a new tab window. This particular page also has links that can take the visitor onward to other pages. !
  • 31. But your web page is still active in the original tab window. So the visitor can easily return to it regardless of what happens on the external web page's tab. You can leave both tabs open for now. !
  • 32. Lets try one more for practice. This time we will make the word hyperlink a hyperlink. !
  • 33. And we will link it to the Wikipedia page about hyperlinks. !
  • 34. Type the code in step 6 before the word hyperlink. !
  • 35. Next paste in the URL from step 7. !
  • 36. Now step 8 finishes the href attribute with the double quote. Then add a space and the target attribute with the value of underscore blank enclosed by double quotes followed by the close angle bracket. !
  • 37. Then the last step adds the close anchor element tag after the word hyperlink. You can save your work. !
  • 38. Refresh the page. You will see the first hyperlink shows the visited color and our new hyperlink shows the unvisited color. These default styling behaviors can be changed using CSS. !
  • 39. Click the new hyperlink and the Wikipedia page opens in a new tab. !
  • 40. If you left the first Wikipedia page open, you see its tab is still available. !
  • 41. Going back to your web page's tab, you see that the link text color is now showing that the page was visited, !
  • 42. That does it for this exercise. You created the anchor element with link text. !
  • 43. You learned to copy the external web page's URL and paste into your HTML code. That is a surefire way to avoid typos and headaches. !
  • 44. The target attribute is useful for opening external web pages in other tab windows. This keeps your web page handy for your visitor's return. !
  • 45. Our testing revealed the default styling. ! !
  • 46. This included underlined text along with the traditional color states of visited and unvisited hyperlinks. !
  • 47. The visited state merely means that the URL is in the web browser's history. !
  • 48. The web browser may clear its history based on the user expiration preferences. Or the user can choose to clear the web browser's history. !
  • 49. Finally we saw the linked web pages opened in new web browser tab windows. !
  • 50. Copyright 2014 Lon Hosford. All Rights Reserved. www.lonhosford.com This is the voice transcript and screen captures from the video for this portion of the course.