var instagram = document.getElementsByClassName('instagram'); for(var a=0;a < instagram.length;a++) { instagram[a].innerHTML += ''; instagram[a].innerHTML += ''; instagram[a].innerHTML += ''; instagram[a].innerHTML += ''; instagram[a].innerHTML += ''; }