We recently had a web designer create our html/css, and upon reviewing some code updates, I noticed the following:
img
elements simply reference the path of the image like this:
<img src="/images/pic.png">
However, for css (using the background
property), images are specified using a url:
header { height: 73px; background: url(/assets/maudi/nav.png); }
I am curious about the significance of using the url
function in this context.