base target='' - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:base

Introduction

The target attribute tells the browser how to open URLs.

The values you specify for this attribute represent a browsing context.

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
   <head> 
      <title>Example</title> 
      <base href="http://java2s.com/" target="_blank"> 
   </head> 
   <body> 
      <p>
          I like 
         <code id="myId">HTML</code>
          and CSS. <!--from ww w  .j  ava 2 s .  co  m-->
      </p> 
      <a href="index.htm">Visit java2s.com</a> 
      <a href="page2.html">Page 2</a>  
   </body>
</html>

Related Tutorials