Images
- Width and height are attributes
- If image is in the same folder as website (i.e. index.html), then just refer to the image name (no pathway needed)
- Another attribute is alt (text displayed if image won't, also alt text for accessibility)
- class can be used instead of width and height
Image attributes and elements
- Visit this page to see other image attributes
- For versions of an image for different display/device scenarios, see the <picture> element
- Images that work well on devices with widely differing screen sizes, resolutions, etc., see the responsive images tutorial
Local and remote