HTML Hyperlink

HTML Hyperlink

HTML Hyperlink

HTML Hyperlink provides linking between the two web pages.

  • It can be a text, image etc. and by clicking on which we can move from on web pages to another web page on the website.

  • HTML Hyperlink is defined by <a href="url"> syntax.

  • href stands for Hyperlink Refrence (hyperlink address).

  • url stands for Uniform Resource Locator(where our resource is located).

Example:
Click here to go to <a href="../..">PooriPadhai</a>
Run Code »
Example Explanation:

In the above, we have shown an example of HTML Hyperlink.

Run the code to see the effect.




HTML Hyperlink Target Attribute

The target attribute is used to enhance the property of hyperlink.

1. _blank Attribute
  • It opens the web page in a new tab.

  • It is very useful when we want that the user can go to another webpage without leaving the current webpage.

Example:
Click here to go to <a target="_blank" href="https://www.google.com">Google</a>
Run Code »

Run the code to see the effect.


2. _self Attribute
  • It opens the web page in the same frame(this is default).

Example:
Click here to go to <a target="_self" href="../..">PooriPadhai</a>
Run Code »

Run the code to see the effect.




3. _parent Attribute
  • It opens the web page in the parent frame.

Example:
Click here to go to <a target="_parent" href="../..">PooriPadhai</a>
Run Code »

Run the code to see the effect.


4. _top Attribute
Example:
Click here to go to <a target="_top" href="../..">PooriPadhai</a>
Run Code »

Run the code to see the effect.




HTML Hyperlink in Hindi

Best Use:360p or more (480p or 720p)
×

Course Menu