You're developing a webpage where clicking on a product image should navigate to the product's detailed view in a new tab, ensuring the original page remains open. How would you implement this using anchor tags and target attributes?

  • Use target="_blank" in the anchor tag. 
  • Use target="_parent" in the anchor tag. 
  • Use target="_self" in the anchor tag. 
  • Use target="_top" in the anchor tag. 
The target="_blank" attribute in the anchor tag makes the linked document open in a new browser window or tab. This ensures the original page remains open while the user can view the product details in a new tab. 
Add your answer
Loading...

Leave a comment

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