HTML target attribute

  • We use the a tag to give links in HTML.
  • target parameter is a feature of the a tag.
  • target feature can have _blank, _self, _parent, or _top values.
  • target=”_blank” helps opening the link in a different tab.

HTML target=”_blank” Attribute

<a href="#" target="_blank">Link</a>
Link
409 Views
79560cookie-checkHTML target attribute

Leave a Reply

Your email address will not be published. Required fields are marked *