This forum is now read-only. Please use our new forums at discuss.codecademy.com.

Make a Website: Bootstrap Forum

View Course » View Exercise

355 points
Picture
Submitted by
Danilo Feijó
over 2 years ago

Where save the site images?

Hi,

My doubt is about [best practices to ] store images. I can use 2 options to work with images:

A- Safe the images into site repository (a "img" folder for example) and use a local path in my html ("/img/myImage.jpg);

or

B- Safe the image on remote environment and use one URL like This exercise ("http://goo.gl/04j7Nn")

I want to knows What the best practice and Why. The "A" option sounds goods (I think) but don't sure.

Best regards
Thank You


1 vote

permalink

Hello Dan,

I would recommend option A, that way you will always own that image. If you chose option B and who ever owns the url at option B decides to remove the picture, it would mess up your website.

If you are using something reliable to host external images, then both options are valid and its mainly down to preference (unless you start looking at page load speed in depth)

Thanks

862 points
559668bb9113cb80140006e5_658289431
Submitted by
Keith Light
over 2 years ago