pgriffin31 / 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-08-24 at 7 14 12 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 as this helps with accessiblity and is best practice (see above for example).

Example: https://github.com/pgriffin31/prj-rev-bwfs-tea-cozy/blob/master/tea/index.html#L13