How do i put a link within my site?

simon20

Free Member
Sep 11, 2008
38
0
Hi could someone help me, i have a football website, im looking to put a link within my site from 1 product to another, if anyone can let me know which code i type in or how to do it i would be great full thanks simon
 
Good grief.

The code you need is
<a href='http://sitetobelinkedto.com' title='Some text to say what site you are linking to'>text</a> .

So for example a link to my site would be <a href='http://www.ozbon.com' title='Link to Ozbon.com'>Ozbon.com</a>

Get a book on HTML. That's the basic language that the site you have is written in.
 
Last edited by a moderator:
Upvote 0
No, the part inside href='' is the site you're linking to.
text is what will appear as the link itself, so it will be underlined and clickable.

In the href, you need to remember to use the http:// part of the web address as well - this tells the browser you're going outside the site you're currently in. Otherwise it will try to find www.yoursite.com/www.site_youre_linking_to.com , which will never work, and result in an error.
 
Upvote 0

DesignsOnline

Free Member
  • Business Listing
    Sep 5, 2008
    236
    63
    Essex
    the-web-design-company.co.uk
    Here is a simple example of how to link to google:

    <a href="http://www.google.com">Google</a>

    The first part tells the browser where you want to sent it:
    <a href="http://www.google.com">

    then you add the word you wish to link, this should really be some sort of description of the page you are linking to:
    <a href="http://www.google.com">Google</a>


    Then finally you need to close the active link with the final bit of the code:
    </a>

    <a href="http://www.google.com">Google</a>

    If you dont remember to use this, then depending on which brower is used to view the web page you will either get no link, or in some browsers it may turn all the text on the page after that point in to the link.

    Hope that helps,
    Joe
     
    • Like
    Reactions: simon20
    Upvote 0

    noidea

    Free Member
    Aug 6, 2008
    1,952
    142
    HTML (HyperText Markup Language) is the language used for the webpages, hypertext is a nice cool fancy name of saying a link lol... Anyway the HTML is made up of tags, which are in '<' and '>'.

    Standard text will appear like:

    keywords go here

    To make this a link, you need to create an anchor tag around it like follows:


    <a>keywords go here</a>

    (notice the forward slash on the terminating tag)

    Currently the link would point no where so we need to tell the browser where it will go. This is done by adding the href (hypertext reference) attribute to the tag.

    <a href="http://www.microsoft.com">keywords go here</a>

    There are numerous other attributes you can add such as "title" which defines what a tooltip (if any) would appear when the mouse cursor is over the link.

    Hope this helps :)
     
    • Like
    Reactions: simon20
    Upvote 0

    noidea

    Free Member
    Aug 6, 2008
    1,952
    142
    Upvote 0

    Latest Articles