The number of images indexed by Google is much less than the number of words. It is therefore statistically easier to position an image in the results of the search engine, than to position a text. Still need to know how to do it. SEO expert in Lahore wants to guide the students.
Optimize html code
The html code for inserting an image into a web page is as follows.
<img src = ” http: //www.yoursite.com/images/image-name.jpg ”
width = ” 245 ” height = ” 152 ” alt = ” alternative text for describe the picture ”
title = “title you would give to the image” longdesc = ” exampleimage.html ”>
In this code, several elements are to be optimized with the keywords which you will have defined in advance.
The name of the image
The name of the image must contain your keywords. It is advisable to avoid the accents and to separate the words by dashes (the dash of the 6). The number of characters is not limited. Note that this criterion has a relatively low weight for Google among the criteria related to images.
The image format must be .jpg, .gif or .png.
The images in .png are the least heavy but the number of colors is limited. It is therefore better to focus on a .gif, or a .jpg for a photo.
The alt tag
The alternative text of an image must describe the image with the selected keywords. It is included in the Alt tag.
- Its weight is very important
- It is advisable to write 10 words maximum, rather lowercase not accentuated.
- For the images of your graphic, the W3C advises to indicate an empty Alt tag like this: alt = “”
- The name and title tags
The Longdesc tag
The Longdesc tag points to an html page that gives more information about the image. It can be useful for websites that add value to images. Google does not use this tag Longdesc but, apparently, other engines take it into account. Note that this tag is not valid in html5.
It seems that large images mini 500 × 500 are better positioned. Note that Google Images allows you to filter results by size. To improve the loading time of the page, it is also advisable to indicate in the html code the height and width of the image in question. Thus, the browser is not obliged to adapt to the image since it already knows its size.
The text that surrounds the image
It is advisable to insert keywords in the text surrounding the image. The engines give more weight to the 10 words placed before and after the image tag, than to the other words. Also think of the text of the link that points to it. You can put it in bold, which gives it more weight. You are ready to optimize your images so that they are indexed by Google and well positioned in the engine results. In the future, search engines will recognize the content of an image without the need for text. It is therefore important to take care now of quality and sharpness of your images.