Set Link target in HTML and CSS

Description

The following code shows how to set Link target.

Example


<!-- w w  w.j  a va2 s  .  co m-->
<!DOCTYPE HTML>
<html>
<body>
<a href="http://java2s.com" target="_blank">Last Page</a>
</body>
</html>

Click to view the demo

The code above generates the following result.

Set Link target in HTML and CSS