/

HTML / CSS / JavaScript Tutorial

HTML Standard attribute: target

[this page | pdf | back links]

The HTML target attribute indicates where / how to open a linked document (or where to submit a form). It applies to <a>, <area>, <base> and <form> elements.

 

Valid attribute values (for <a>, <area>, <base> and <form>) include:

 

Value

Description

_blank

Opens linked document in a new window or tab

_parent

Opens linked document in parent frame

_self

(default value). Opens linked document in the same window or tab as was clicked

_top

Opens linked document in full body of the window

framename

Opens linked document in named frame (not applicable to <form> elements)

 


NAVIGATION LINKS
Contents | Prev | Next | HTML Attributes


Desktop view | Switch to Mobile