--- title: A Target Attribute --- ## A Target Attribute The `` attribute specifies where to open the linked document in an `a` (anchor) tag.
#### Examples: A target attribute with the value of “_blank” opens the linked document in a new window or tab. ```html
freeCodeCamp ``` A target attribute with the value of “_self” opens the linked document in the same frame as it was clicked (this is the default and usually does not need to be specified). ```html freeCodeCamp ``` ```html freeCodeCamp ``` A target attribute with the value of “_parent” opens the linked document in the parent frame. ```html freeCodeCamp ``` A target attribute with the value of “_top” opens the linked document in the full body of the window. ```html freeCodeCamp ``` A target attribute with the value of _"framename"_ opens the linked document in a specified named frame. ```html freeCodeCamp ``` #### More Information: Target Attribute: w3schools