How to display an image using IMG tag

   All Help Topics   

How to display an image using IMG tag

You should use the HTML tag "IMG" to display images in web pages.


<img src="" alt="Some text related to the image" style="padding:5px" align="left" >

The above html will display the image specified in the "src" attribute.

You can optionally specify the text title using the "alt" attribute, which will be shown when a user move the mouse over the displayed image.

The "padding" attribute within the "style" specifies that there should some 5 pixel gap between image and the next element like text in the page.

"align" attribute specifies whether the image has to be aligned left, center or right.

Tips & rules

1. In the "src" attribute, do not link to images in other sites. Such linking is called "hard linking". In most cases, it is illegal to do hard linking. In some cases, other sites allow you to do hard linking, but that is a trick. After few years, they will either delete those images or convert those images to advertisements which will mess up our site.

If you are using an image in our site, make sure the image is attached in our site. You should link to images in our site and not any other sites.

2. Do not specify width and height attributes for an image. Instead, resize the image before you upload.

   All Help Topics   

Call (+91) 8138875600 for SEO training in Kerala

Importance of SEO training

Search Engine Optimization (SEO) is the key to success for websites. So is Digital Marketing for businesses. Our SEO training courses in Kochi can help you get your dream job.

Contact us to learn more about our SEO training programs in Kochi, Kerala.
Talk to Webmaster Tony John
Contact SEOProfessor

Looking for SEO training in Kochi/Ernakulam, Kerala?

Call (+91) 8138875600 (India)

Fill enquiry form

You may choose from several training programs we offer, including 1-month SEO certification courses and 3-month digital marketing diploma program.
Copyright © SpiderWorks Technologies Pvt Ltd., Kerala, India
All Rights Reserved.