Hyperlinking, or Linking, is the ability to click on a bit of text or an image and have it jump you to another page, or area of a page. This requires both the Opening <a> and the Closing </a> Anchor Tag.
Anchors also must have the href= (Hypertext Reference) attribute to work properly:

<a href=””>some text</a>

Example:

[copya id=”link_3745836374″ target=”3745836374″]Copy it[/copya]
[t_block id=”3745836374″ filename=”3745836374″]<!DOCTYPE html>
<html>
<body>
<h3>Click on Hyperlink</h3>
<a href=”https://www.itlearn360.com/”>Training Portal</a>
</body>
</html>[/t_block]

  • The link text does not have to be text. It can be an HTML image or any other HTML element.
  • Without a trailing slash on sub-folder addresses, you might generate two requests to the server. Many servers will automatically add a trailing slash to the address, and then create a new request.

The target Attribute

The target attribute specifies where to open the linked document.

Target Value Description
_blank Opens the linked document in a new window or tab
_self Opens the linked document in the same frame as it was clicked (this is default)
_parent Opens the linked document in the parent frame
_top Opens the linked document in the full body of the window
framename Opens the linked document in a named frame

[copya id=”link_4185706685″ target=”4185706685″]Copy it[/copya]
[t_block id=”4185706685″ filename=”4185706685″]<!DOCTYPE html>
<html>
<body>
<h3>Click on Hyperlink</h3>
<a href=”https://www.itlearn360.com/” target=”_blank”>Training Portal</a>
</body>
</html>[/t_block]

Image as Link

[copya id=”link_6736325154″ target=”6736325154″]Copy it[/copya]
[t_block id=”6736325154″ filename=”6736325154″]<!DOCTYPE html>
<html>
<body>
<h3>Click on Image</h3>
<a href=”https://www.itlearn360.com/”><img src=”http://www.qaonlinetraining.com/wp-includes/images/logo.png”></a>
</body>
</html>[/t_block]

Create a Bookmark

  • HTML bookmarks are used to allow readers to jump to specific parts of a Web page.
  • Bookmarks are practical if your website has long pages.
  • To make a bookmark, you must first create the bookmark, and then add a link to it.
  • When the link is clicked, the page will scroll to the location with the bookmark.