nkhatua / prj-rev-bwfs-tea-cozy

0 stars 0 forks source link

Locally stored images #2

Open aubreywullschleger opened 7 years ago

aubreywullschleger commented 7 years ago

Simplify! Consider using locally stored images in your project as this is best practice for production code and will allow your page to load faster. To do this you would create a new images folder inside your Resources folder, like this: screen shot 2017-10-08 at 8 20 41 pm

Then save the images you are using in your project to the new folder and use your <img> tags like this: <img src="./Resources/images/img-tea-cozy-logo.png" alt="Tea Cozy logo"> Also, be sure to use descriptive alt attributes on your <img> elements this helps with accessiblity and is best practice as well (see above for example).

Example: https://github.com/nkhatua/prj-rev-bwfs-tea-cozy/blob/master/Tea%20Cozy/index.html#L10

nkhatua commented 7 years ago

Hi Aubrey- Thanks for the feedback, will keep this thing in mind for next upcoming projects.