Searching for something, i-google mo na!
Custom Search

Saturday, October 30

HTML Tips: Different usage of _new and _blank in anchor tag

If you know a little about html, I think this one will be a great help. For those of you who can't get enough or understand what I'm talking about I think you'd better read my other posts instead of this one because it's just wasting your time. Have a great day ahead! ^^,


target="_new" and target="_blank" can only be used in anchor tag while creating a HTML link.

If you use target="_new", all links (associated with it) will open in one window/tab.
eg:  
NClick1 with target=_new
NClick2 with target=_new

On the other hand, if you use target="_blank", all links (associated with it) will open in different windows/tabs.
eg:
BClick1 with target=_blank
BClick2 with target=_blank


If you want to see how it works and what it looks like, try clicking the links below and see their differences.

ANCHOR TAG WITH TARGET "_NEW"
  1. My Personal Blogsite 
  2. Youtube Site

code:
<a href="http://manlalakbay88.blogspot.com/" target="_new">My Personal Blogsite</a>
<a href="http://www.youtube.com/" target="_new">Youtube Site</a>
 

ANCHOR TAG WITH TARGET "_BLANK"
  1. My Personal Blogsite
  2. Youtube Site

code:
<a href="http://manlalakbay88.blogspot.com/" target="_blank">My Personal Blogsite</a>
<a href="http://www.youtube.com/" target="
_blank">Youtube Site</a>


Personal Blogs - Blog Top Sites
Free WEB Hosting!

No comments:

Post a Comment

Hi and hello!

I'm glad you take time to read my blog post. If you have something to say, you are free to leave your message, comment, or suggestion below. Thank you.