ah2389 / prj-rev-bwfs-dasmoto

0 stars 0 forks source link

Locally stored images #4

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 resources folder, like this:
screen shot 2018-01-29 at 10 30 31 pm

Example: https://github.com/ah2389/prj-rev-bwfs-dasmoto/blob/master/DasmotosArts/index.html#L12

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 for your <img> elements (see above for example). This is best practice and helps make your site more accessible!

ah2389 commented 6 years ago

Makes perfect sense, have not seen this yet!