MuyuanMa / prj-rev-bwfs-dasmoto

0 stars 0 forks source link

Using locally stored images #2

Open aubreywullschleger opened 7 years ago

aubreywullschleger commented 7 years ago

Great! Awesome job using locally stored images for your project! This is best practice for production code and helps your page load faster.

Example: https://github.com/MuyuanMa/prj-rev-bwfs-dasmoto/blob/master/Dasmoto/index.html#L11

Make sure to use descriptive alt attributes on all of your <img> elements like this: <img src="./resources/hacksaw.jpeg" alt="hacksaw paint brushes"/> This is best practice and helps make your site more accessible!

MuyuanMa commented 7 years ago

Useful article I found: Accessibility

  1. alt is attribute of img tab, meant to be an alternative for non-visual browsers when they come across images - what is displayed or read is the alternative text, or shown on mouse resting on image.
  2. Brief but clear, contextual, space for spacer images (avoid showing inner workings of site), search engine conscious, but not only for optimization (SEO, search engine optimization, because SE can remove your site from results)