LearnFast.Ninja

Open link in new tab html

How to open a link in new tab.

Add "target" attribute with the value: "_blank" to the "a" element.

Example:

<a href="http://www.domain.com" target="_blank">http://www.domain.com</a>


Result:


Tags

html

a target blank