How to Make Text a Link in HTML

How to Make Text a Link in HTML thumbnail
Links help viewers navigate through a website.

Links allow users to navigate their way around a website. One of the objects that can provide a link is text. Programmers can attribute a link to any text within an HTML file using specified tags. These tags wrap the text to contain the link to that spot only.

Things You'll Need

  • HTML-editing software
Show More

Instructions

    • 1

      Open your webpage in an HTML-editing software. You can use Notepad (Windows) or TextEdit (Mac) if you do not have this type of software. Both come pre-installed on most computers.

    • 2

      Locate the text you want to link.

    • 3

      Place your cursor before the first letter where the link will start. Input the following code:

      <a href="link">

      Change "link" to the URL of the site you want users to be taken to, but keep the quotation marks.

    • 4

      Position your cursor after the last letter where the link will end. Close the tag by typing "</a>" (without quotes). Everything in between the tags will be linked to your specified URL. Here is an example of how your link should look:

      <a href="http://www.ehow.com">eHow.com</a>

    • 5

      Save the HTML file and upload it to your server. Preview the webpage to ensure the link works properly.

Tips & Warnings

  • You can link an image the same way by replacing the text in between the tags with image code.

Related Searches:

References

  • Photo Credit website image by 6922Designer from Fotolia.com

Comments

You May Also Like

Related Ads

Featured