Skip to main content

Hyperlink open in a new window or tab

In response to a blogger request, here is the HTML for a hyperlink that opens in new window and tag (that is, visitor will not lose your site):

URL" target="_blank">anchor text

or

URL" target="new">anchor text

NOTE:
1. target="....." has been deprecated and is not XHTML compliant and will give errors when you try to validate your website with
http://validator.w3.org/

This is because the people drafting the new standard feels that this should not be forced upon visitors but left to visitors to make a link open in the same or new window or tab (you can make a hyperlink open new window or new tab by right-clicking on a link and choosing either). But how many surfers know how to do that?

target="...." is still effective in many current browsers. Don't know about the future.

2. anchor text is the text that will be displayed by the browser. For example this is the HTML to the father of this blog which will soon be converted to custom domain:

URL" target="_blank">Blogger Tips and tricks


and the browser will display it as

Blogger Tips and Tricks

Anchor text is important from the SEO (Search Engine Optimization) point of view. Refer to Importance of anchor text in hyperlinks.

3. Many webmaster feels that forcing visitors clicking on links in your site to open new windows or tabs is a wrong strategy and may discourage repeat visits, but this subject is controversial. Do your own research.

Comments



Free Educational Website For All

Popular posts from this blog

The Beginning of Everything

Okay, as you all know, I am not pleased for journal writing yet I'm addicted to it. I've not written my journal for quite long time, so I took a step forward; hence making me, myself become more interested to carry on the task. It does not require much energy, but just time. Yet, it is so meaningful and gives me satisfaction. My next year theme? Wait for that in my upcoming posts...

'Proto-Malays the origins of the human race'

  Research in archaeology and genetics could very well prove that the ancient Proto-Malays living in the Sunda Shelf were the ancestors of the human population today. The term Proto-Malay, which translates to Melayu asli (aboriginal Malay) or Melayu purba (ancient Malay), refers to the Mongoloids and Austronesian speakers from mainland Asia who moved to the Malay peninsular and Malay archipelago in a long series of migrations between 2500 and 1500 BC. The Proto-Malays are believed to be seafarers knowledgeable in oceanography and possessing advanced fishing as well as basic agricultural skills. They moved around from island to island in great distances between New Zealand and Madagascar, and they served as navigation guides, crew and labour to Indian, Arab, Persian and Chinese traders for nearly 2000 years. Over the years, they settled at various places and adopted various cultures and religions as a result of acculturation and interracial and inter-tribal marriages with mos...