In my application im using express framework to serve the client side files.But while giving background image for the html element.Its showing failed to load given url.
If your file directory is like
/public
/stylesheets
/javascripts
/images
/logo.jpg
then your public access begins at the /public
directory. This means that in order to access the image, the address would be localhost:8080/images/logo.jpg
.
In summary, you had two problems.
/
), not a backslash (\
) in your URLsimage
directory in the address