1.

How to specify the link in HTML and explain the target attribute?

Answer»

HTML PROVIDES a hyperlink - <a&GT; tag to specify the links in a webpage. The ‘href’ attribute is used to specify the link and the ‘target’ attribute is used to specify, where do we WANT to OPEN the linked document. The ‘target’ attribute can have the following values:

  1. _self: This is a default VALUE. It opens the document in the same window or tab as it was clicked.
  2. _blank: It opens the document in a new window or tab.
  3. _parent: It opens the document in a parent frame.
  4. _top: It opens the document in a full-body window.


Discussion

No Comment Found