DavidRog / prj-rev-bwfs-dasmoto

0 stars 0 forks source link

Locally stored images #3

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/hacksaw.jpeg" alt="hacksaw paint brushes"/> 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/DavidRog/prj-rev-bwfs-dasmoto/blob/master/Dasmotos/index.html#L11

DavidRog commented 7 years ago

I will definitely give this a shot, Aubrey. My only concern is, I've seen several others in the class remark that they've had major difficulties with implementing locally stored images into their coding.