Use target="_blank" to start new tab when clicking a link - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:a

Description

Use target="_blank" to start new tab when clicking a link

Demo Code

ResultView the demo in separate window

<html>
 <head></head> 
 <body> 
  <p>Hello!</p> 
  <a target="_blank" href="http://java2s.com">click me</a>  
 </body><!--from  w ww.j av a  2 s .  c om-->
</html>

Related Tutorials