hyperlink - How to open link in new tab on html? -


i'm working on html project, , can't find out how open link want open in new tab without javascript.

i know <a href="http://www.website_name.com"></a> opens link in same tab. ideas how make open in new one?

set 'target' attribute of link _blank:

<a href="#" target="_blank">link</a> 

edit: other examples, see here: http://www.w3schools.com/tags/att_a_target.asp

(note: suggested blank instead of _blank because, if used, it'll open new tab , use same tab if link clicked again. however, because, goleztrol pointed out, refers name of frame/window, set , used when link pressed again open in same tab).


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -