Tuesday, September 21, 2021

HTML 101: Links

 In HTML, links are added into a document by making use of the anchor tags (<a>).


Anchor tags are tags that allows users or programmers to implement or include links into their document either as a text or an image etc.

The syntax:

<a href=""></a>

In the sample above, a is the anchor tag,

href is an attribute that directs the users to a landing URL.


Some other attributes that can be used within the anchor tag or:


  •   download: when the download attribute is included in the tag it directs the browser to download the sorce instead of loading it.         <a href="URL" download>
  • target: the target attribute controls how the URL in question is opened or where it is opened. Some of the values that are accepted are: (_blank: opens in a new tab, _self: opens in the current tab, _parent: opens in the parent tab, _top: opens in the whole window, framename: opens in a specified iframe) 

No comments:

Post a Comment

HTML 101: Form

  I believe that everyone who has made use of the internet knows what a form is but in case you don't know, a form is a way of receiving...