What is a target attribute in HTML?

When a user clicks on a link, the (anchor) element and the location assets in HTML are used to indicate where the linked content ought to go. It specifies the target window or frame, or the browsing environment, in which the linked document will open.

Go from files to website in seconds.

Start a free trial for 7 days — no credit card required

Get Started for Free