CS401A's Midterms: Fundaments of Web Prog. Module 04 Flashcards
For midterm and final exams.
is a modern solution for creating flexible layout that work correctly on different screen sizes as it organizes content into two (2) dimensions:
CSS Grid, or Grid,
rows and columns.
CSS Grid Layout (Casabona, 2021)
specifies the main content in the HTML document,
The main tag
CSS Grid Layout (Casabona, 2021)
and it can enclose several sections/articles but should not contain any repeated content across the document.
The main tag
CSS Grid Layout (Casabona, 2021)
can be used to space the row and columns using
The gap property
row-gap and column gap properties.
CSS Grid Layout (Casabona, 2021)
specifies independent and self-content and encloses various elements such as
< article> tag
header and paragraphs
CSS Grid Layout (Casabona, 2021)
specifies some content beside the content it is placed in and is usually presenced as
< aside> tag
sidebars.
CSS Grid Layout (Casabona, 2021)
is the exact area of ther screen that is rendering the website.
In mobile devices, is is the full screen of a device, while it is the width and height of a browser window.
Viewport
CSS Grid Layout (Casabona, 2021)
should be included in all HTML webpages and always go inside the < head> element.
This < meta> viewport element
CSS Grid Layout (Casabona, 2021)
It gives the browser instructions on controlling the page’s dimension and scaling.
< meta> viewport element
CSS Grid Layout (Casabona, 2021)
sets the page width to follow the screen width depending on the devices,
The width=device-width
CSS Grid Layout (Casabona, 2021)
sets the initial zoom level when the webpage is loaded by the browser.
while initial-scale=1.0
are not just sets of properties and values but containers for other rulesets implemented based on the
Media Queries
media query results.
MEDIA QUERY (Casabona, 2021)
is declared inside a link tag, while it is declared using
Note that this affects the grid layout.
the media attribute
@media in CSS.
MEDIA QUERY (Casabona, 2021)
Other logic which is used if both conditions are true
includes only
MEDIA QUERY (Casabona, 2021)
which is used to revert the media query that will return false if the output is true.
and not
MEDIA QUERY (Casabona, 2021)
is when the layout changes to adjust to the viewport.
Breakpoint
MEDIA QUERY (Casabona, 2021)
It is set using min-width, which makes the layouts more usable and does not break when viewed on any device.
Breakpoint
MEDIA QUERY (Casabona, 2021)
is a flexible one that can be viewed on small devices up to larger screens.
A responsive image
MEDIA QUERY (Casabona, 2021)
are declared inside the < head> tags and below the < meta> tag.
The < style> tags
MEDIA QUERY (Casabona, 2021)
has a video player that can be viewed on small screens up to larger screen devices.
A responsive video
MEDIA QUERY (Casabona, 2021)
The syntax and placement are the same as those used to make responsive images.
A responsive video