0
votes

HTML Tip - Don't Send Readers Away From Your Blog

posted August 8, 2008 - 1:41am
HTML Tip - Don't Send Readers Away From Your Blog

target="_blank" will open a new browser.

Quite often a writer will cite a reference or incorporate a link to another website into his or her blog for the benefit of their readers.

When posting a link to another site in your blog, it's important to remember that you do not want your reader to leave your blog. Keeping that in mind, here is an easy way to place a text link or a url in your post that will open in a new window instead of whisking your readers off to another website.

Example 1
You want to post a url in your text like this:

I found a link to a free sitemap generator and website submission at www.FreeSEOResources.com.

If you just typed in the url it would be converted to a normal link and when your readers clicked on it, they would be taken away from your page. The new page would load in the same browser window, thus replacing your blog.

In order to keep your blog open and have the link open in a new window, you must place the the proper html code around the link like so:

< a href="http://www.FreeSEOResources.com" target="_blank" >www.FreeSEOResources.com< /a >

The target="_blank" added after the linking code will open the link in another window.

NOTE: For the purpose of illustrating the proper format, a space was added after each < and before each > so that the code would not work. (If the spaces were removed, you would not see the code, only the text that falls in between the > < )

Example 2
You want to insert a text link.

Using the same technique as above you can create a text link, such as referencing the title of an article or a keyword like so:

Everyone should read the post entitled "My Asparagus Farm on Mars." It is a scientific study about the future settlement and subsequent commercialization of the Red Planet.

For this text link you would use the same format as in example 1, but you would place the code around >My Asparagus Farm on Mars<

< a href="http://www.mymarsasparagusfarmstory.com" target="_blank" >My Asparagus Farm on Mars< /a >

NOTE: Remember there are no spaces before or after the < or >

OK, so, is that as clear as mud? If you would like a more detailed HTML code tutorial you can click HERE.


Broadband Essentials by RealNetworks




Comments

I'm glad you found it helpful

Thanks for your comment..I hope it was useful. It was part of my community service sentence for being a bad boy when I first started on Xomba. Click here to find out how you can get paid to post items like this. It's free and easy to join.

Xombytes

Great Information

Thank you.

Make a lot of money writing on Xomba. Join Xomba here. View My Profile.

Thanks to my Mystery Readers. I hope the tip was helpful.

Thank you to my mystery readers. I hope my tip was easy to understand and helpful. I see many new members of xomba lately and hope it will help them as well. Click here to find out how you can get paid to post items like this. It's free and easy to join.

Xombytes

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Post new comment

  • Lines and paragraphs break automatically.
  • You can use BBCode tags in the text. URLs will automatically be converted to links.
  • Allowed HTML tags: <p> <br> <b> <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <span> <object> <param> <embed> <table> <tr> <td> <div>
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options

Join Xomba Today

Do you like to write? Would you like to make a little extra money on the side? These people do. Join the Xomba community today.
Become a Member