Tutorials
Navigation
  • Index
  • Next

  • Home Page
  • Home

  • HTML


    Links

    Unless you can fit your website onto one page, its quite likely you`re going to need some links. These are things you can click with the mouse that sends you to a new page. The page is specified within the link. The link itself can be text, or even a picture.

    To create a link, you first need a page to link to. If you have a page called, "page2.html" then to link to that page you would use the following tag:

    <a href="page2.html"> Your link description here </a>

    This creates the following result: Your link description here

    Links like this are to pages within your file space, but its just as easy to link to other places on the web. To do this, all you need to do is add the full address. For example, to link to my page2.html from another site outside my filespace, the address would become "http://www.geocities.com/ma0pnt/tutorials/page2.html", and thus the link would look like this:

    <a href="http://www.geocities.com/ma0pnt/tutorials/page2.html"> link</a>

    The result would be the same: link

    To use a picture for a link, simply combine the two bits of code for pictures and links like so:

    <a href="page2.html"><img src="tutorial.gif"></a>

    Which results in a link like this:

    <<< Previous TutorialTutorial IndexNext Tutorial >>>

    Thank you for visiting my home page.
    Hosted by www.Geocities.ws

    1