Creating Page Layouts with CSS Flashcards
What does semantic tags do to our webpage?
Make it nice for readers and also for indexing
What is the “Do not lie metatag?”
Is a meta element containing the initial definition of width, initial scale and maximum scale.
``
What are the four most used semantic elements? Where are all they located?
header, nav, header, footer. INSIDE the body element.
Where to find fonts? How to import the selected fonts to our website?
fonts.google.com. Import them by using the “embedded” tab and copying the content inside our HEAD element
Is it recommended to use css reset or normalize? What each one does?
css reset resets all the predefined styles defined by the browser. Normalize does the same but less intrusive.
Should we separate CSS files? one example containing 4?
normalize.css, small, medium and large.css
How do the CSS files are organized in a mobile-first approach? How do the CONTENT of these files are activated?
normalize and small are always applied, medium only for tablets and large only for computers. ACTIVATED via media queries.
Regarding border-box: Are margins applied inside the box? what about padding?
margins = OUTSIDE padding = INSIDE
What difference between jpg, png and svg? what does svg mean?
jpg = images;
png = images with transparent backgroud;
svg = scalable images
svg means SCALABLE VECTOR GRAPHIC
When SVG used the most? why?
For icons because they look great for all screen sizes
do div and section has default styling?
NO
What does the clear property do?
It allows removing preceding or succeding floating elements to below
In a regular layout screen, can the elements touch the border of the browser?
no.. this is a design issue.
What is a hero image?
It is an image that brings attention to our site.
Why do we need to set a pre-defined height and weight in our images even when they are overwritten by the css? Does it do what we call “Jank removal”?
So that the image box takes its place before the image downloads and this way the content won’t be pushed down. YES