|
Add linksLinks are the text that you click on a page that takes you to a different page or opens something or download, etc. In HTML or on the net, these are called hyperlinks, they link one page to another or something different than the page you are on to that page. Links are essential to almost every web page and site because it allows people to travel around and go from one page to another. Here is an example of a link tag:
<a href="index.php">Home</a>
As you can see, the link tag is composed of an opening and closing tag. It is very important that you remember to place the closing tag on there because if you don't, then everything after the opening tag is a link. It will link to the page that you have indicated. The outcome of the tag above would look like this:
If you click on that link, then it would take you to our index.php page (usually pages are .html or .htm, but on our site it is .php because we used PHP files, but your file ending will depend on what kind of file you have).
Here's a diagram of the basic structure of links:
We will now review the basic link code:
<a href="http://www.mysite101.com">MySite101</a>
|