www.pickatutorial.com Computer Tutorials
Top eBooks: C/C++ | C# | Android | Mathematics | Database | Cloud | Graphics | Networking | Oracle | Hardware | AI
Top Tutorials: C/C++ | C#.NET | PHP MySQL | Java | Java Script | jQuery | HTML | xHTML | HTML5 | VB Script| CSS
Lessons Advanced HTML Links Bookmark and Share
Tutorial Home
Lesson 1
Lesson 2
Lesson 3
Lesson 4
Lesson 5
Lesson 6
Lesson 7
Lesson 8
Lesson 9
Lesson 10
Lesson 11
Lesson 12
Lesson 13
Lesson 14
Lesson 15
Lesson 16
Lesson 17
Lesson 18
Lesson 19
Lesson 20
Lesson 21
Lesson 22
Lesson 23
Lesson 24
Lesson 25
Lesson 26
Lesson 27
Lesson 28
Lesson 29
Lesson 30
Lesson 31
Lesson 32
Lesson 33
Lesson 34
Lesson 35
Lesson 36
Opening links in a new browser window:

When we click on a text or an image link, the default behavior of the browser is to open it in the present window. We can control this behavior and force the browser to open our link in a new window by using anchor <a> tag's target attribute, as under:

<a href="http://www.pickatutorial.com" target="_blank" >Computer Programming Tutorials</a>

Computer Programming Tutorials

If you click on the above link, the browser will open it in a new window. The value _blank that is assigned to the target attribute asks the browser that the link should be opened in a new blank window. Image Links:

We can also use images as links. We just need to enclose the <img> tag within the <a> and </a> tags.

<a href="http://pickatutorial.com">
<img src="../resources/logo.jpg"></a>

The result will be:


Next >>> Lesson No. 25: Email Links





Home - Advertise - Contact - Disclaimer - About Us
© Since 2006 pickatutorial.com -- All Rights Reserved.