While reading the contents of websites, we all notice that there are certain words that appear blue and underlined. Sometimes the words may also be another colour and underlined. In any case, once we move our mouse pointer over it, generally there appears a hand icon with the index finger pointing out. This indicates that we have come to a hyperlinked word. A hyperlink is simply “a reference or navigation element in a document to another section of the same document, another document, or a specified section of another document, that automatically brings the referred information to the user when the navigation element is selected by the user.” - Wikipedia. Most people just refer to is a link.
The word that you see hyperlinked is called the anchor text, “which is the visible, clickable text in a hyperlink. It is the text a user clicks when clicking a link on a web page. Generally, the anchor text provides the user with a relevant descriptive or contextual information about the content of the link’s destination. The anchor text may or may not be related to the actual text of the URL of the link.” - Wikipedia. The next question then is: “How are hyperlinks created along with anchor texts?”
A hyperlink with anchor text are written like this:
<a href="http://www.pricesetters.net">Price Setters</a>In the example above, the hyperlink is this part: <a href="http://www.pricesetters.net"> while the anchor text is Price Setters. So when someone goes to web page with this hyperlink, they will only see the anchor text: Price Setters. When they click on it, the hyperlink will cause the website that is referenced in it to open. To use the code, simply replace the given hyperlink and anchor text with your own.



No comments yet.
Leave a comment