# How do we specify the target for where to open the linked document in HTML?

HTMLWeb DevelopmentFront End Technology

Use the target attribute to specify the target for where to open the linked document in HTML. Here are the values of the target attribute −

Attribute
Description
_blank
Opens the linked page in a new tab.
self
Opens the linked page in the current tab.
parent
Opens the linked page in a parent frame.
top
Opens the linked page in the topmost frame.

## Example

You can try to run the following code to implement target attribute −

<!DOCTYPE html>
<html>
</html>