Monday, July 18, 2011

Open Link in New Tab html Code - Blogger Technical Tips

The syntax or HTML code is typically as below:
<a href="url" target="_blank"></a>





There are also publishers who use “_new” instead of “_blank” as the value for “target” attribute to open a link in new window. There is actually no “_new” defined as frame target names by W3C HTML standards. The only four reserved names are “_blank”, “_parent”, “_self” and “_top”. However, the “_new” value works the same way as “_blank” to launch the linked web documents in new browser window because of graceful error handling by web browsers. So “_new” is not a valid value for “target” attribute in link anchor, and may cause inconsistent behaviour for strictly HTML compliant browser that ignores all other target names as frame target name should begin with an alphabetic character (a-z and A-Z).


No comments:

Post a Comment