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>

No comments:

Post a Comment

Hello!

Thank you for taking the time to read my blog post. I would love to hear your thoughts, comments, or suggestions. Feel free to share your message below or above. Thanks again!