Online videos and audio was made possible by plug-in based technology like Flash and Silveright.
<video>
element.
The
src
attributes is similar to images and contains a path to the video. Thecontrols
is used to give users the ability to control the video and audio playback.
<video>
element?
Having the fallback content inside the
<video>
element is important.
<audio>
and <video>
are characters.
Grids are two-dimensional vs Flex which are one-dimensional
Grid containers: the element that the grid is applied to. Grid items: direct descendent of the grid containers. Grid Lines: Horizontal and Vertical lines that makeup the structure of the grid
We should make images responsive so that they are not only visually appealing but also so that the image is completely visible and doesnt get cut off on the side.
<img>
attributes srcset and sizes. Write an example of how they are used.
srcset
: used to include multiple files with hints to the browser to pick the right one based on sizes. egsrcset="elva-fairy-480w.jpg 480w, elva-fairy-800w.jpg 800w"
sizes: defines the media conditions followed by sizes in px to hint to the browser what image from the sourcset to use.
its more helpful because it allows us to tell the browser what exact image to use for certain screen sizes vs letting it scale down and hoping the image works.
.setupGrid {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
grid-template-rows: 1fr 1fr 1fr;
}
.gridPositioning{
grid-column-start: 1;
grid-column-end: 4;
grid-row-start: 1;
grid-row-end: 3;
}