reading-notes

201 class 11 notes

Why this matters: This information matters because audio, video, and image content are all important parts of modern webpages. Therefore, knowing how to properly implement those components in your pages, including considerations like fallback content and responsive sizing, is important to coding modern web content.


Video and Audio Content

Source:https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Video_and_audio_content

1. Explain how the ability to use video and audio on the web has evolved since the early 2000s.

Initially, Flash and Silverlight (proprietary, plugin-based technologies) were the tools used to bring videos and audio online. They have been replaced over time because of security and accessabilty issues, with native HTML solutions <video> and <audio>and the ability of JavaScript APIs to control these elements.

2. Describe the use of the src and controls attributes in the <video> element.

3. Why is it important to have fallback content inside the <video> element?

4. Write a very short story where <audio> and <video> are characters.

Once upon a time, there were two elements who fell in love, though they came from different worlds. They decided to become parents, and their child was - of course - the world famous Beyoncé, who is the Queen of both of these media.Source Just wait for the Renaissance visuals!


A Complete Guide to Grid

Source: https://css-tricks.com/snippets/css/complete-guide-grid/

1. How does Grid layout differ from Flex?

Flexbox is one-directional/one-dimensional, whereas Grid is two dimensional.

2. Grid container, grid item, and grid line are a few important terms to understand when using Grid. Please describe these terms in a few sentences.


Responsive Images

Source: https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images

1. Besides making a site visually appealing across different screen sizes, why should developers make images responsive?

2. Define the following <img> attributes srcset and sizes. Write an example of how they are used.

3. How is srcset more helpful for responsive images than CSS or JavaScript?


Things I Want To Know More About:

Nothing at the moment!