Wednesday, December 26, 2012

Blog Tips: HTML Code for Bloggers

Center


<center>   <code to be centered> </center>

place this bit of code around the object code, or around anything inside the <div> and </div>. The centering command must be closed within the div command or you will get an error.


Open link in new window


target="blank"

to be placed after the image reference script before >
<a href="http://www.yourlinkhere.com" target="_blank">LINK TEXT</a>
(click for more info)


Nofollow


rel=”nofollow” 

After the <a in the beginning of your code for the address you are linking to (either text or Image), just after the a insert rel="nofollow" with a space before and after it.

<a rel=”nofollow” href=”http://www.yourlinkhere.com”>LINK TEXT</a>

 

Page Break


<br />  

Insert this command after text, picture, videos or whichever code to help space things out.


Blog Tips: Open Link in New Window

When blogging, it can be important that when a visitor clocks on a link, it opens in another window. This way your visitors can see what you are referring to, yet they can continue to browse your blog. This can also increase your amount of pageviews. The HTML code is quite simple to add if your blog site doesn't have a box to check. The code is as follows:

 target="blank"

The code for a link is quite simple. The <a href designates the link command following by the link. The text after the carrot > is the text to display and the </a> closes the command.

<a href="http://mybraindownloaded.blogspot.com/">My Brain Downloaded</a>

In order to open a link in a new window, insert this code within the link code before the carrot > closing the link reference.

<a href="http://mybraindownloaded.blogspot.com/" target="blank">My Brain Downloaded</a>


Blogging Tips: HTML Code for Bloggers