Skip to main content

How automatically add ALT and Title tags to blogger images?

How automatically add ALT and Title tags to blogger images?


We are always worry about SEO (search engine optimization) of our blogs. Images is the integral part of blogger posts. Many people do not know that search engines bot unable to read images, so tells about the images to search engines; we add Alt tags to all blog images. It is very difficult and time consuming to add manually Alt tag to all blog images. Today I am sharing a code that automatically adds ALT and title tag to your blogger images. With this simple and short code, you save a lot of time and optimize your blogger images with great ease.

How this code Work

This code takes the name of your image and use it as Alt and Title tag of your blog images. So, before use this code, give a proper name your images.

How to add this code

  • Go to your blogger dashboard and select desire blog.
  • Go to blog template and Edit HTML (Before adding this code backup your Template.)
  • Now Search the </body> in coding area 
  • Paste the below code just above </body> it.
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js' type='text/javascript'/> <script type='text/javascript'> //<![CDATA[$(document).ready(function() {$('img').each(function(){ var $img = $(this); var filename = $img.attr('src')$img.attr('title', filename.substring((filename.lastIndexOf('/'))+1, filename.lastIndexOf('.')));$img.attr('alt', filename.substring((filename.lastIndexOf('/'))+1, filename.lastIndexOf('.'))); }); });//]]> </script>
  • Save the Template and enjoy it. 
After adding the code all your images automatically add ALT, title tags, and increase your search visibility. At last, I hope the short JavaScript codes help you to SEO your blogger images and save your time. If you like this post, share it on social media with your friends.

Comments

Popular posts from this blog

Top High Page Rank Dofollow Forums 2015 to Increase Backlinks

Quality backlinks are an important part of SEO (search engine optimization). They play a key role to increase your search engine ranking, Alexa ranking and brings quality traffic on your blogs. Every blogger strives to increase its backlinks to improve its presence in search engines. One thing to remember that a quality backlink has much importance on 1oo bad links. Now first we define what is a backlink? Backlinks, also known as incoming links, inbound links, inlinks, and inward links, are incoming links to a website or web page. In basic link terminology, a backlink is any link received by a web node (web page, directory, website, or top-level domain) from another web node. ( WikiPedia )  You can get quality backlinks from pro bloggers a number of ways, for example comment on posts, guest posts etc. Dofollow Forums 2015 First, I provide you 50+ High page rank dofollow comment blogs . Today, I am providing top high page rank dofollow forums 2015 to increase your b...

10 Best Creative Domain Name Generator Tools

Domains are very significant part of a commercial enterprise and its branding. Attractive and easy domain name also helps to get huge traffic. If you want to create a new website or blog and do not have an idea about selecting a good domain name, then there is an easy solution to your problem. In this post, I describe 10 Best Creative Domain Generator Tools that help you to get ideas for your new domain. 1. NameBoy This is a worthy and reliable creative domain name generator tool. Thousands of people all over the world use NameBoy. Boy recommends you numerous domain name when you entered primary and secondary word of your domain. You can also find sold domain names by this generator. 2. DomainsBot DomainsBot an immediate and trusted domain name generator tools. It helps you to find the domains based on extensions. The main advantage is that you can check premium domains and free domain lookup to get owner’s information. 3. Dot-o-mator Dot-o-motor is much relating to NameBo...

How to increase Alexa ranking of your blog in one week

Alexa Ranking is the key factor in online traffic. Alexa is owed by Amazon company. It is very necessary to boost up your Alexa ranking to get quality traffic and earn money. According to a report, there are more than 633 million websites and double in the next year. Blogger is a free platform, so it is hard to increase its Alexa ranking easily as compared to self-host and self-domain sites. One thing is to remember that, Alexa's ranking doesn't effect on your search engine ranking, but it's very useful when you are looking for a potential advertiser. AlexaBootsup is the right solution of your all Alexa problems. What is Alex aBoostup?  AlexaBoostup is an online website that helps you to increase your Alexa ranking easily. Like other auto surf websites, it also provides points that you can use to get traffic on your site. One thing is to remember that, you must have the Alexa toolbar to get a better ranking quickly. You can earn points by surfing website...