![]() |
|
Advnaced HTML links, Free online HTML Tutorial, Learn HTML online for free... |
| Lessons | Advanced HTML Links |
|
|
|
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"> The result will be:
Next >>> Lesson No. 25: Email Links
|