How to Convert Text to HTML Link

Converting text to an HTML link is an essential process used for web pages, Internet forums and other online applications. By using the HTML <a> anchor element in conjunction with the Uniform Resource Locator (URL), hyperlinks are created to point to another area on the web. You can link text to various web sources, such as content within your own files, an image, another website or a video.

Things You'll Need

  • HTML text editor, such as BBEdit or Dreamweaver
Show More

Instructions

    • 1

      Create a new file in an HTML text editor, such as BBEdit or Dreamweaver, or open an existing document.

    • 2

      Enter the text that you want to convert into a link or locate the desired text within an existing file.

    • 3

      Determine whether you are linking to an internal page or if you are linking to an outside website, such as eHow.com. If you are linking internally, make sure your files are in the same directory and take note of the folder the file is housed in. If you are linking externally, record the full URL of the website that you are linking to.

    • 4

      Enter the opening and closing <a></a> anchor tags with associated attributes just before and after the text. This is what actually links your text to a destination. The attributes name the destination address, entered within the <a href="..."> portion, and instructs the browser where to point the link to. The name of the web page, entered within the <title="..."> portion, identifies the name of this destination. Your text for the link will appear at the end, right before the </a>. For example, a link to an internal page within your website may look like <a href="index.html" title="Home Page">Home Page</a> and a link to an outside website may look like <a href="http://www.ehow.com" title="eHow.com">eHow</a>.

    • 5

      Name and save your file with the .html extension. The link(s) that you created will now appear in blue with an underline underneath the text.

Tips & Warnings

  • If your link does not work, make sure your file is saved and that you entered the correct URL of the destination address. It's a best practice to always include a "title" attribute when linking your text. This allows your web page to be read by those viewers using screen readers and enables major search engines, such as Google, to find your page easier.

Related Searches:

References

Resources

Comments

You May Also Like

Related Ads

Featured