Whenever We add id attribute to the <img> tag, the image does not show up.
for eg.
<img src="something.jpg" id="sidebarAd">
This Image will not show up. Also, If I Place in it a <div> as well. It will not work. For E.g.
<div id="sidebarAd">
<img src="something.jpg">
</div>
But, if i use a class tag. Everything works like a charm. Why does this happen ?
This is probably caused by an AdBlocker filter responding to your ID name
#sidebarAd. Which is expected behavior because… Well… It’s an ad 🙂This demo by @zzzzBov demonstrates that when my AdBlock Chrome extension is active, the image is invisible, but when disabled, the image is shown.