SlideShare ist ein Scribd-Unternehmen logo
1 von 17
HTML
Lesson Six – Creating Links



       http://www.htmltutorials.ca/lesson6.htm#t
                         op
Links
• You use links to:
  1. jump from section to section within the same
     web page (also called Page Jump)
  2. link to a different page within your own website
     (such as my linking this lesson to the next lesson
     or to my home page)
  3. link to another web page or website anywhere in
     the world


                 http://www.htmltutorials.ca/lesson6.htm#t
                                   op
There are different ways to provide these links

• The three most common ones are:
  1. clicking on a word, phrase or sentence
  2. clicking on a button
  3. clicking on an image




                 http://www.htmltutorials.ca/lesson6.htm#t
                                   op
LINKS WITHIN A PAGE - PAGE JUMP
• To offer a page jump, you need two items:
  1. The command that points or sends the browser
     to another section on your web page.
  2. The place or point on the page where you want
     the browser to jump to.




                http://www.htmltutorials.ca/lesson6.htm#t
                                  op
• "linkname" is the name of the section you are
  jumping or linking to.
• EXAMPLE
  <H4 ALIGN="CENTER">
  <A HREF="#top">click here to go to the top of the
    page</A></H4>




                 http://www.htmltutorials.ca/lesson6.htm#t
                                   op
• When you move the mouse pointer anywhere
  on the words, "click here to go to the top of
  the page", it turns into a pointing hand.
• …It means that you are on a link and clicking
  on the link will take you some place.




               http://www.htmltutorials.ca/lesson6.htm#t
                                 op
• "#top“ from <A HREF="#top">click here to go
  to the top of the page</A><P> is called the
  URL which stands for
  – Universal
  – Resource
  – Locator.
• A URL is the address or location of the link.


                http://www.htmltutorials.ca/lesson6.htm#t
                                  op
• The A stands for Anchor.
• Every Anchor tag must have a closing or end
  tag (</A>) to signal the end of the anchor.
• The anchor element is a "container element".
• Everything contained between the <A> and
  </A> tags is affected by the element.



               http://www.htmltutorials.ca/lesson6.htm#t
                                 op
• The Anchor element is called a Hyperlink as it
  allows you to link to any location or address
  you want.
• The anchor tag is the glue for hypertext
  documents.
• HREF stands for Hypertext REFerence
• It means that "this is where the link is going
  to" - that is, where the link is referenced.
                http://www.htmltutorials.ca/lesson6.htm#t
                                  op
• The # symbol that you see in the first
  command must be there.
• The # denotes an internal page link.
• Without it, your browser will be looking for
  the code name outside the page you are on…




               http://www.htmltutorials.ca/lesson6.htm#t
                                 op
REMEMBER
• There is no # symbol in the NAME attribute.
• The NAME attribute is used to set up "named
  anchors".
• When you click on the link, the section where
  you place the NAME command (the target of
  your HREF attribute) will appear at the top of
  the browser screen.


                http://www.htmltutorials.ca/lesson6.htm#t
                                  op
LINKING TO ANOTHER PAGE IN YOUR
            WEBSITE
• <A HREF="#linkname">Click on these words</A>
• …just replace the #linkname with the name of
  your file…
• <A HREF="filename.htm">Click on these
  words</A>




                http://www.htmltutorials.ca/lesson6.htm#t
                                  op
LINKING TO ANOTHER PAGE
       ANYWHERE IN THE WORLD
• To link to any page in the world, just replace the
  file name with the COMPLETE ADDRESS (URL)
  of the page you want to link to.
EXAMPLE
• <A HREF="http://www.youtube.com/">THIS WILL GO TO
      YOUTUBE SITE</A>




                  http://www.htmltutorials.ca/lesson6.htm#t
                                    op
USING A LINK BUTTON
• There are two main command lines here.
  1. FORM command
  2. INPUT command.
• FORM is a container element.
• The opening tag tells the browser that a form
  item is going here. The closing tag </FORM>
  ends the form item (which you see at the
  end of the statements).

               http://www.htmltutorials.ca/lesson6.htm#t
                                 op
• The FORM command has two attributes –
  1. METHOD
  2. ACTION.
• METHOD, a FORM attribute, tells the
  browser how to handle the FORM command.
• Its value here is "GET".
• That is, the browser is to "get" something
  which in this case points to a link through
  the ACTION attribute.


               http://www.htmltutorials.ca/lesson6.htm#t
                                 op
• ACTION means the connection that you want
  to make.
• In this case, the action is a connection to my
  home page which is a file called "index.htm".
• If you want to connect to a page on the
  WWW, be sure to type in the complete
  address (URL).
• ACTION is a required attribute as it specifies
  the URL of the location you want to link to.
• The second command line is the INPUT
  command and it generates the button.
                http://www.htmltutorials.ca/lesson6.htm#t
                                  op
• The TYPE attribute lets the browser know
  what TYPE of INPUT will occur.
• In this case we want to SUBMIT a button (a
  button is assumed in "submit"). Thus
  TYPE="submit" produces a button.
• The VALUE attribute gives the wording that
  will appear on the button.
• Only the value of the ACTION and VALUE
  attributes require quotation marks.
• Quotation marks for the METHOD and TYPE
  values are optional.
               http://www.htmltutorials.ca/lesson6.htm#t
                                 op

Weitere ähnliche Inhalte

Ähnlich wie Lesson 6 creating links

Lesson 3 understanding the basic tags updated
Lesson 3   understanding the basic tags updatedLesson 3   understanding the basic tags updated
Lesson 3 understanding the basic tags updatedpatrick arellano
 
Lesson 4 tags that affect your text
Lesson 4   tags that affect your textLesson 4   tags that affect your text
Lesson 4 tags that affect your textpatrick arellano
 
Lesson 5 indenting and creating spaces
Lesson 5   indenting and creating spacesLesson 5   indenting and creating spaces
Lesson 5 indenting and creating spacespatrick arellano
 
With HTML you can create your own Web site.pdf
With HTML you can create your own Web site.pdfWith HTML you can create your own Web site.pdf
With HTML you can create your own Web site.pdfSMK Negeri 6 Malang
 
Using Database Constraints Wisely
Using Database Constraints WiselyUsing Database Constraints Wisely
Using Database Constraints Wiselybarunio
 
From java to rails
From java to railsFrom java to rails
From java to railsjokry
 
Giles Palmer, Evaluation, Google+ for businesses and brands
Giles Palmer, Evaluation, Google+ for businesses and brandsGiles Palmer, Evaluation, Google+ for businesses and brands
Giles Palmer, Evaluation, Google+ for businesses and brandsCommunicate Magazine
 
Adam Vincenzini, Implementation, Google+ for businesses and brands
Adam Vincenzini, Implementation, Google+ for businesses and brandsAdam Vincenzini, Implementation, Google+ for businesses and brands
Adam Vincenzini, Implementation, Google+ for businesses and brandsCommunicate Magazine
 
Live Landing Page Reviews
Live Landing Page ReviewsLive Landing Page Reviews
Live Landing Page Reviewspointit
 
Dhs sequence of_learning
Dhs sequence of_learningDhs sequence of_learning
Dhs sequence of_learningJaneyMay
 
Dhs sequence of_learning
Dhs sequence of_learningDhs sequence of_learning
Dhs sequence of_learningJaneyMay
 
Tijdschriften publiceren met onderzoeksdata: Enhanced Journals Made Easy
Tijdschriften publiceren met onderzoeksdata: Enhanced Journals Made EasyTijdschriften publiceren met onderzoeksdata: Enhanced Journals Made Easy
Tijdschriften publiceren met onderzoeksdata: Enhanced Journals Made EasyDriek Heesakkers
 
Is Anybody Reading This? Writing Content for the Web
Is Anybody Reading This? Writing Content for the WebIs Anybody Reading This? Writing Content for the Web
Is Anybody Reading This? Writing Content for the WebMark Figart
 
Analytics SEO The Future 14/12/11
Analytics SEO The Future 14/12/11Analytics SEO The Future 14/12/11
Analytics SEO The Future 14/12/11Steve Lock
 
Scalable JavaScript Application Architecture
Scalable JavaScript Application ArchitectureScalable JavaScript Application Architecture
Scalable JavaScript Application ArchitectureNicholas Zakas
 
Social Search (SEO) & Social Signals
Social Search (SEO) & Social SignalsSocial Search (SEO) & Social Signals
Social Search (SEO) & Social SignalsLee Smallwood
 
Lee Smallwood, Search, Google+ for businesses and brands
Lee Smallwood, Search, Google+ for businesses and brandsLee Smallwood, Search, Google+ for businesses and brands
Lee Smallwood, Search, Google+ for businesses and brandsCommunicate Magazine
 

Ähnlich wie Lesson 6 creating links (20)

Lesson 3 understanding the basic tags updated
Lesson 3   understanding the basic tags updatedLesson 3   understanding the basic tags updated
Lesson 3 understanding the basic tags updated
 
Lesson 4 tags that affect your text
Lesson 4   tags that affect your textLesson 4   tags that affect your text
Lesson 4 tags that affect your text
 
Do your test
Do your testDo your test
Do your test
 
Lesson 5 indenting and creating spaces
Lesson 5   indenting and creating spacesLesson 5   indenting and creating spaces
Lesson 5 indenting and creating spaces
 
With HTML you can create your own Web site.pdf
With HTML you can create your own Web site.pdfWith HTML you can create your own Web site.pdf
With HTML you can create your own Web site.pdf
 
Using Database Constraints Wisely
Using Database Constraints WiselyUsing Database Constraints Wisely
Using Database Constraints Wisely
 
ankit02
ankit02ankit02
ankit02
 
From java to rails
From java to railsFrom java to rails
From java to rails
 
Giles Palmer, Evaluation, Google+ for businesses and brands
Giles Palmer, Evaluation, Google+ for businesses and brandsGiles Palmer, Evaluation, Google+ for businesses and brands
Giles Palmer, Evaluation, Google+ for businesses and brands
 
Adam Vincenzini, Implementation, Google+ for businesses and brands
Adam Vincenzini, Implementation, Google+ for businesses and brandsAdam Vincenzini, Implementation, Google+ for businesses and brands
Adam Vincenzini, Implementation, Google+ for businesses and brands
 
Live Landing Page Reviews
Live Landing Page ReviewsLive Landing Page Reviews
Live Landing Page Reviews
 
Dhs sequence of_learning
Dhs sequence of_learningDhs sequence of_learning
Dhs sequence of_learning
 
Dhs sequence of_learning
Dhs sequence of_learningDhs sequence of_learning
Dhs sequence of_learning
 
Tijdschriften publiceren met onderzoeksdata: Enhanced Journals Made Easy
Tijdschriften publiceren met onderzoeksdata: Enhanced Journals Made EasyTijdschriften publiceren met onderzoeksdata: Enhanced Journals Made Easy
Tijdschriften publiceren met onderzoeksdata: Enhanced Journals Made Easy
 
Hacking Rapidshare
Hacking RapidshareHacking Rapidshare
Hacking Rapidshare
 
Is Anybody Reading This? Writing Content for the Web
Is Anybody Reading This? Writing Content for the WebIs Anybody Reading This? Writing Content for the Web
Is Anybody Reading This? Writing Content for the Web
 
Analytics SEO The Future 14/12/11
Analytics SEO The Future 14/12/11Analytics SEO The Future 14/12/11
Analytics SEO The Future 14/12/11
 
Scalable JavaScript Application Architecture
Scalable JavaScript Application ArchitectureScalable JavaScript Application Architecture
Scalable JavaScript Application Architecture
 
Social Search (SEO) & Social Signals
Social Search (SEO) & Social SignalsSocial Search (SEO) & Social Signals
Social Search (SEO) & Social Signals
 
Lee Smallwood, Search, Google+ for businesses and brands
Lee Smallwood, Search, Google+ for businesses and brandsLee Smallwood, Search, Google+ for businesses and brands
Lee Smallwood, Search, Google+ for businesses and brands
 

Kürzlich hochgeladen

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 

Kürzlich hochgeladen (20)

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 

Lesson 6 creating links

  • 1. HTML Lesson Six – Creating Links http://www.htmltutorials.ca/lesson6.htm#t op
  • 2. Links • You use links to: 1. jump from section to section within the same web page (also called Page Jump) 2. link to a different page within your own website (such as my linking this lesson to the next lesson or to my home page) 3. link to another web page or website anywhere in the world http://www.htmltutorials.ca/lesson6.htm#t op
  • 3. There are different ways to provide these links • The three most common ones are: 1. clicking on a word, phrase or sentence 2. clicking on a button 3. clicking on an image http://www.htmltutorials.ca/lesson6.htm#t op
  • 4. LINKS WITHIN A PAGE - PAGE JUMP • To offer a page jump, you need two items: 1. The command that points or sends the browser to another section on your web page. 2. The place or point on the page where you want the browser to jump to. http://www.htmltutorials.ca/lesson6.htm#t op
  • 5. • "linkname" is the name of the section you are jumping or linking to. • EXAMPLE <H4 ALIGN="CENTER"> <A HREF="#top">click here to go to the top of the page</A></H4> http://www.htmltutorials.ca/lesson6.htm#t op
  • 6. • When you move the mouse pointer anywhere on the words, "click here to go to the top of the page", it turns into a pointing hand. • …It means that you are on a link and clicking on the link will take you some place. http://www.htmltutorials.ca/lesson6.htm#t op
  • 7. • "#top“ from <A HREF="#top">click here to go to the top of the page</A><P> is called the URL which stands for – Universal – Resource – Locator. • A URL is the address or location of the link. http://www.htmltutorials.ca/lesson6.htm#t op
  • 8. • The A stands for Anchor. • Every Anchor tag must have a closing or end tag (</A>) to signal the end of the anchor. • The anchor element is a "container element". • Everything contained between the <A> and </A> tags is affected by the element. http://www.htmltutorials.ca/lesson6.htm#t op
  • 9. • The Anchor element is called a Hyperlink as it allows you to link to any location or address you want. • The anchor tag is the glue for hypertext documents. • HREF stands for Hypertext REFerence • It means that "this is where the link is going to" - that is, where the link is referenced. http://www.htmltutorials.ca/lesson6.htm#t op
  • 10. • The # symbol that you see in the first command must be there. • The # denotes an internal page link. • Without it, your browser will be looking for the code name outside the page you are on… http://www.htmltutorials.ca/lesson6.htm#t op
  • 11. REMEMBER • There is no # symbol in the NAME attribute. • The NAME attribute is used to set up "named anchors". • When you click on the link, the section where you place the NAME command (the target of your HREF attribute) will appear at the top of the browser screen. http://www.htmltutorials.ca/lesson6.htm#t op
  • 12. LINKING TO ANOTHER PAGE IN YOUR WEBSITE • <A HREF="#linkname">Click on these words</A> • …just replace the #linkname with the name of your file… • <A HREF="filename.htm">Click on these words</A> http://www.htmltutorials.ca/lesson6.htm#t op
  • 13. LINKING TO ANOTHER PAGE ANYWHERE IN THE WORLD • To link to any page in the world, just replace the file name with the COMPLETE ADDRESS (URL) of the page you want to link to. EXAMPLE • <A HREF="http://www.youtube.com/">THIS WILL GO TO YOUTUBE SITE</A> http://www.htmltutorials.ca/lesson6.htm#t op
  • 14. USING A LINK BUTTON • There are two main command lines here. 1. FORM command 2. INPUT command. • FORM is a container element. • The opening tag tells the browser that a form item is going here. The closing tag </FORM> ends the form item (which you see at the end of the statements). http://www.htmltutorials.ca/lesson6.htm#t op
  • 15. • The FORM command has two attributes – 1. METHOD 2. ACTION. • METHOD, a FORM attribute, tells the browser how to handle the FORM command. • Its value here is "GET". • That is, the browser is to "get" something which in this case points to a link through the ACTION attribute. http://www.htmltutorials.ca/lesson6.htm#t op
  • 16. • ACTION means the connection that you want to make. • In this case, the action is a connection to my home page which is a file called "index.htm". • If you want to connect to a page on the WWW, be sure to type in the complete address (URL). • ACTION is a required attribute as it specifies the URL of the location you want to link to. • The second command line is the INPUT command and it generates the button. http://www.htmltutorials.ca/lesson6.htm#t op
  • 17. • The TYPE attribute lets the browser know what TYPE of INPUT will occur. • In this case we want to SUBMIT a button (a button is assumed in "submit"). Thus TYPE="submit" produces a button. • The VALUE attribute gives the wording that will appear on the button. • Only the value of the ACTION and VALUE attributes require quotation marks. • Quotation marks for the METHOD and TYPE values are optional. http://www.htmltutorials.ca/lesson6.htm#t op

Hinweis der Redaktion

  1. In our example, the container element A not only contains the name of the section we are jumping to (&quot;top&quot;), but also the words to be clicked on (&quot;click here to go to the top of the page&quot;).