Absolute Links
Absolute hyperlinks are those including the whole pathname. In most situations, you use absolute hyperlinks when connecting to webpages or websites that are not aspect of your own web page. Overall hyperlinks must involve the method (such as http://) at the starting of the weblink. For example, if you are connecting from your web page to Yahoo!, you kind http://www.yahoo.com as your weblink.
<a href="http://www.yahoo.com">Visit Yahoo!</a>
Family member Links
Relative hyperlinks are so known as because you never involve the whole pathname of the website to which you are connecting. Instead, the pathname you use is comparative to the present web page. This is just like saying, “I reside in Summershade Trial, about three kilometers from here,” which is comparative to wherever “here” is. A more overall way to say this might be “I stay at 410 Summershade Trial in Anytown, USA 55104.”
Relative hyperlinks are most widely used when you want to weblink from one web page in your website to another. The following is an example of what a comparative weblink might look like:
<a href="contactme.html">Contact Me</a>
This weblink looks for the contactme.html computer file in the same computer file that contains this page. If you were connecting to a computer file in another computer file below the present one, the value of your href might look like the following:
<a href="wendy/contactme.html">Contact Me</a>
If you need to weblink to a computer file in a computer file above the computer file your page is in, you can add “../” for each index up the shrub. So, if the computer file you are connecting to is two files greater than the one you are in, you might use
<a href="../../contactme.html">Contact Me</a>
Think you were making a web page for yourself and your family, using the following index framework. Information and files are indented to indicate that they are on a different stage.
You are working on the outlined file: july4.html. This computer file is situated two files down from the webpage (index.html) in a file known as vacations. If you want to backlink to that webpage from the july4.html web page, you would involve a family member weblink just like this one:
Now, think you will work on the wedding.html computer file and you want to weblink to the july4.html web page. Can you think about how you would do that?
To weblink from wedding.html to july4.html, use the following code:
<a href="holidays/july4.html">Check out these photos from July 4.</a>
Because the july4.html computer file is one computer file below the birthday.html computer file you are currently working on, you simply list the computer file name followed by a forward slash and the filename.



0 comments:
Post a Comment