Insert Image in HTML

Insert Image in HTML - Now we'll learn how to add image in HTML. In this lesson, you will know the basic script or image tag in HTML to insert a picture to your blog post.

Basic HTML Image Tag


The script below is HTML script to add image.

<img src="http://blogger-doctor.blogspot.com/favicon.ico"/>

Description:
  • http://blogger-doctor.blogspot.com/favicon.ico is the image URL, you need to upload the image to a hosting, and get the image URL. You can call this link as the image source.
  • In example, I use image in ico formatted. You'll find many picture in different format, such as jpg, jpeg, png, bmp, and other else.

Image Alt Tag Attribute


You know that search engine can't see a picture like we do with our eyes. They read anything that described as text. We can use image alt tag attribute to describe image to search engine. So, if your visitor search something in google images search, your picture may appear in result. It is good for your blog and search engine optimization (SEO).

<img alt="image description" src="http://blogger-doctor.blogspot.com/favicon.ico"/>

You need to add alt="image description" attribute to describe your pic to search engine.

Attach URL Link to an Image


How to attach URL link to an image? This question asks you how we can click on image link, and directed us to a website. Before that, you must have already mastered : How to Create a Link in HTML.

All you have to do is change the Anchor Text with HTML image tag.

<a href="http://blogger-doctor.blogspot.com" target="_blank"><img src="http://www.blogger.com/img/blogger-logo-small.png"/></a>

For example, if I write a line of HTML script above, the image will appear like this :



If you click image above, you will be directed to my homepage.

May this tutorial help you :)

How to Make a HTML Link

how to make a link
How to Make a HTML Link - One of the basic tutorial blogger that must be mastered is how to make a link. You know that blogger uses HTML, so I will show you the HTML script to make a link.

Basic HTML Script to Make a Link


<a href="http://blogger-doctor.blogspot.com">Anchor Text</a>

Description:
  • http://blogger-doctor.blogspot.com is the URL, link address that points to web or sites.
  • Anchor Text is the text that is displayed to represent the link.
Consider the structure of the script above. For example if I write a code like this :

<a href="http://blogger-doctor.blogspot.com">Tutorial Blogger</a>

The link will appear like this : Tutorial Blogger

How to Make Link Open In New Tab?


Now, you will learn how to make link that open in new tab. It would be very useful if you create a link to another site. It keep your visitor to stay in your blog, and the visitor can also visit the link at the same time.

You have to do is add an attribute to the HTML link script.

<a href="http://blogger-doctor.blogspot.com" target="_blank">Anchor Text</a>

You have to add target="_blank" as the tag attribute into the link script, so the link can open in new tab. Below are attributes you can use to make the link open in new tab, it all have same function :
  • target="_blank"
  • target="blank"
  • target="new"
The result : Tutorial Blogger

Hope this tutorial can help you...