images Flashcards
how should images be stored on your site?
1) separate folder
2) related folders inside parent folder
3) sub folders
what html element do we use to add images to a webpage?
(img)
what attributes are used in the image element?
src / alt / title
describe the src attribute in the image element
the src attribute stands for source, this is where we enter the location of the image to be displayed
describe the alt attribute in the image element
the alt attribute provides alternate text for those who cannot see the image for what ever reason
describe the title attribute in the image element
the tittle element provides additional information about an image.
browsers will display the title as a tooltip when the user hovers over the image
provide an example of an image element with values for src, alt and title
(img alt = “alternate tex” src = “image/source” title = “image”)
the image element is described as an empty or self closing tag what does this mean?
an empty or self closing tag does not require a closing tag to work, just an opening tag
what is the html5 element (figure) ?
is a new way of inserting images into a webpage, a figure provides a container for an image and a caption of that image.
what is the html5 element (figcaption) ?
is an element used to add a caption/ description of an image. used inside of a figure element along side an (img) element