SlideShare uma empresa Scribd logo
1 de 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

Mais conteúdo relacionado

Semelhante a 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
 
Mas overview dirks at cni dec11b
Mas overview dirks at cni   dec11bMas overview dirks at cni   dec11b
Mas overview dirks at cni dec11bLee Dirks
 
Linkedin Instant Tips
Linkedin Instant TipsLinkedin Instant Tips
Linkedin Instant Tipskwaiyukwai
 
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
 
Webinar: Top 5 Mistakes Your Don't Want to Make When Moving to the Cloud
Webinar: Top 5 Mistakes Your Don't Want to Make When Moving to the CloudWebinar: Top 5 Mistakes Your Don't Want to Make When Moving to the Cloud
Webinar: Top 5 Mistakes Your Don't Want to Make When Moving to the CloudInternap
 
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
 
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
 

Semelhante a 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
 
Mas overview dirks at cni dec11b
Mas overview dirks at cni   dec11bMas overview dirks at cni   dec11b
Mas overview dirks at cni dec11b
 
ankit02
ankit02ankit02
ankit02
 
Linkedin Instant Tips
Linkedin Instant TipsLinkedin Instant Tips
Linkedin Instant Tips
 
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
 
Webinar: Top 5 Mistakes Your Don't Want to Make When Moving to the Cloud
Webinar: Top 5 Mistakes Your Don't Want to Make When Moving to the CloudWebinar: Top 5 Mistakes Your Don't Want to Make When Moving to the Cloud
Webinar: Top 5 Mistakes Your Don't Want to Make When Moving to the Cloud
 
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
 
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
 

Último

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
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
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
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfhans926745
 
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
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
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
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
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
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
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
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 

Último (20)

Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
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...
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
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
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
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
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
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...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
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
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 

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

Notas do Editor

  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;).