What is the difference between target="_blank" and target="blank"?

HtmlHyperlink

Html Problem Overview


Since I approached the web programming, to open a link in a new window I always used

target="blank"

but most of the time, here and in the rest of the web I have ever seen use:

target="_blank"

Both forms work (of course), but I do not know the difference between the two versions and they do not know what the correct way (and why)....

Html Solutions


Solution 1 - Html

blank targets an existing frame or window called "blank". A new window is created only if "blank" doesn't already exist.

_blank is a reserved name which targets a new, unnamed window.

Solution 2 - Html

In short, use target="_blank" it always open a new window but use target="blank" it will open a new window at the first time and this window will be reused after the first.

Solution 3 - Html

Both target="_blank" && target="blank" will open new window or tab. The difference is

target="_blank"

On every click, it will open in a new window.

target="blank"

On another (Multiple) clicks, it will Open in the same window that opened for the first click (reuses the same tab). It reuses the same tab for all the linked documents with attribute ="blank"


Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionBorjaView Question on Stackoverflow
Solution 1 - HtmlQuentinView Answer on Stackoverflow
Solution 2 - HtmlTommYView Answer on Stackoverflow
Solution 3 - Htmlaj7ttView Answer on Stackoverflow