html - Images showing up as background but not as img src -


this first post please bear me.

i working on wordpress site , came across problem images.

i have background image in stylesheet background-image: "images/dummybg.jpg" , works fine , shows

when go index file , try <img src="images/dummybg.jpg"> image not show up.

both .css , index.php loose in folder relative paths should same. question is, why 1 path work , not other?

wordpress has function image directory index be:

<img src="<?php bloginfo('template_url'); ?>/images/dummybg.jpg"> 

Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -