Bbg-Spt / prj-rev-bwfs-dasmoto

0 stars 0 forks source link

Locally stored images #5

Open aubreywullschleger opened 6 years ago

aubreywullschleger commented 6 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 Resourses folder, like this:
screen shot 2017-11-08 at 10 56 17 pm

Example: https://github.com/Bbg-Spt/prj-rev-bwfs-dasmoto/blob/master/Dasmoto/index.html#L14

Then save the images you are using in your project to the new folder and use your <img> tags like this: <img src="./Resourses/images/frames.jpeg" alt="assorted picture frames"/> Be sure to use descriptive alt attributes on your <img> elements as well (see above for example). This is best practice and helps make your site more accessible!