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

Buruj mudahkan pengenalan bintang di langit

Terdapat 88 sistem buruj di langit. Buruj sebenarnya adalah titik-titik bintang yang dikumpul dan dibahagikan serta diberikan nama-nama tertentu berdasarkan bentuk supaya mudah diingat. Ini merupakan cara sistem buruj mula terbentuk. Justeru, buruj ini sebenarnya bukanlah satu perkara yang benar. Ia sebenar adalah lambang khayalan ahli-ahli syair, petani dan juga astronomi lebih 6,000 tahun lalu. Tujuan sebenar penciptaan buruj ini adalah bagi membantu kita mengenal pasti jutaan bintang di langit. Semasa langit gelap, anda boleh melihat lebih kurang 1,000 hingga 1,500 bintang. Pasti sukar untuk kita mengenal pasti bintang yang mana satu. Malah sekali imbas, titik cahaya yang berkedipan di langit malam kelihatan sama sahaja. Oleh itu, beribu tahun dahulu, ahli astronomi awal telah membahagikan bintang mengikut kumpulan dan melukis gambar khayalan seperti kala jengking atau beruang, di sekeliling kumpulan bintang tersebut supaya mudah diingat. Bintang di dalam sesuatu buruj itu se

Can you IMAGINE IF Selena Gomez and Taylor Swift WEAR HIJAB?

Why Do Languages Die?

Urbanization, the state and the rise of nationalism. “The history of the world’s languages is largely a story of loss and decline. At around 8000 BC, linguists estimate that upwards of 20,000 languages may have been in existence. Today the number stands at 6,909 and is declining rapidly. By 2100, it is quite realistic to expect that half of these languages will be gone, their last speakers dead, their words perhaps recorded in a dusty archive somewhere, but more likely undocumented entirely. (…) The problem with globalization in the latter sense is that it is the result, not a cause, of language decline. (…) It is only when the state adopts a trade language as official and, in a fit of linguistic nationalism, foists it upon its citizens, that trade languages become “killer languages.” (…)