target="_blank" will instruct the browser to create a new browser tab or window when the user clicks on the link.
target="_new" is technically invalid according to the specifications, but as far as I know every browser will behave the same way:
- it will search for a tab or window with the context name “_new”
- if a “_new” tab/window is found, then the URL is loaded into it
- if it’s not found, a new tab/window is created with the context name “_new”, and the URL loaded into it
target="_new" will behave exactly the same as
target="new", and the latter is valid HTML while the former is invalid HTML.
Adding some confusion to this, in HTML4 the
target attribute was deprecated. In HTML5 this decision was reversed, and it is an official part of the spec once again. All browsers support
target no matter what version of HTML you are using, but some validators will flag the use as deprecated if your doctype is HTML4.
Leave an answer