What is the purpose of the target attribute in the anchor tag?

  • To define where the linked document will be opened. 
  • To set the color of the link. 
  • To specify the duration of link hover. 
  • To specify the font-size of the text. 
The target attribute in the anchor tag determines where the linked document will be displayed when the link is clicked. For instance, it can open the link in the same window, a new tab, or even a new window entirely. It provides flexibility in user navigation experience by controlling the browsing context. 
Add your answer
Loading...

Leave a comment

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