This post shows you how to add pictures,clickable images,images(open in new window),etc.
If your site is full of text,then it will spoil the look of your blog.So,if you add some pictures here and there in the sidebars in your blog,then it will give your blog a professional look.
Let's see how to do it.
Adding a picture(unclickable one):
First upload your photo to any free image hosting site like photobucket.com.They will provide an url(link) directly to the photo.Take a note of the url and use the code below replacing the url( from http to jpg) in the code to your original one.(Set your own dimensions to suite your needs)
<img src="http://wallpapers.avantzone.com/data/media/3/nature-desktop-wallpaper-avantzone.jpg" alt="john cena" width="160" height="134" /> |
The image looks like this(unclickable)
Code to add a clickable image:
Here is the code to add a clickable image(open in the same window)
<a href="http://wallpapers.avantzone.com"><img src="http://wallpapers.avantzone.com/data/media/3/nature-desktop-wallpaper-avantzone.jpg" alt="Nature" width="160" height="134" border="0" /></a> |
In the above code,wallpapers.avantzone.com is the target url(replace that url with your desired target url) and
the image url aswell(set your own image dimensions).
The output image will looks like this
(click on the images if you want to test)
If you want to add the pictures in sidebar,sign into your blogger account>add a page element>html/javascript>paste the code and save the changes.
0 comments:
Post a Comment