HTML Tutorial |
Lesson 4 | ||||
Home Introduction to HTML <html> to </html> <body> to </body> Formatting Links Backgrounds Tables Frames Other tags A little Style Resources |
• Tags covered in this lesson: • Explanation: • Working examples: Tags covered in this lesson: Links are what make up the whole World Wide Web. We can jump from one page to another, one topic to another, one site to another, all because we have Links. In internet terminology this is called Hyperlinking. We hyperlink pages with the anchor or the <a> and </a> tags. To complete this exercise we will link to our Firstpage with a new page. So, let us first create our new page: <html> <head> <title>This is a Link Page</title> </head> <body> <p>Welcome to the world of links. <a href="firstpage6.html">Click here</a>.</p> </body> </html> Some more explanation is due at this stage. • <a> tag is short for "Anchor". It begins the link to the other page. • href is Hypertext REFerence or the reference of the file to be anchored or linked. If you are going to link to a page outside your site then write the complete URL beginning with "http://". • </a> closes the anchor tag. • The name of the file to be linked always goes in quotes, single or double. Likewise, you can add a hyperlink in that page to come back to our original page. Try it. • FirstPage7.html |
Home | Introduction to HTML | <html> to </html> | <body> to </body> | Formatting | Links | Backgrounds
Tables | Frames | Other tags | A little Style | Resources |