How to use target="_blank"?

QuestionsQuestions8 SkillsProHTML LinksOct, 19 2025
0126

To use target="_blank" in an HTML hyperlink, you simply add it as an attribute within the <a> tag. This attribute specifies that the linked document should open in a new tab or window. Here’s an example:

<a href="https://www.example.com" target="_blank">Visit Example.com</a>

In this example, when the user clicks on "Visit Example.com," the link will open in a new tab or window.

0 Comments

no data
Be the first to share your comment!