Geolocation
Geo-location in HTML5 is used to share the location with some websites and be aware of the exact location of the user.
How many ways can styling be applied to an HTML document? What are they?
3. Inline styling. Internal Stylesheet. External stylesheet.
div > p {...}
Child selector
Property or Value: "none"
value
@keyframe
CSS
What is the difference between Canvas and SVG?
<canvas> is an HTML element which can be used to draw graphics via scripting (usually JavaScript).
SVG images and their related behaviors are defined in HTML text files.
Provide an example of a Pseudo Element.
::after
::before
::first-line
.fourth-grade {...}
Class selector
Property or value: "flex"
value
class="fourth-grade"
HTML
Why is it called Forms 2.0?
There are five new form elements in the HTML5 forms specification: datalist , output , keygen , progress , and meter .
Forms 2.0 also accepts more input type values (such as email with built-in validation) to create more distinguishable input fields.
Provide an example of a Pseudo Class.
:hover
:visited
:disabled
: nth-child()
#imSpecial {...}
IDs
Can you create variables in CSS?
Yes.
let sandwiches = "sandwiches"
Neither
Previously, media could be only played on web pages using web plugins like Flash. What replaced this?
The <audo> and <video> tags for more easily embedded media content into a web page.
What is the order of Specificity priority?
Inline styling >>
ID >>
Classes, attributes, pseudo-classes >>
elements, pseudo-elements
* {...}
Universal selector
Name some responsive units.
%, vh, vw, em, rem
#imSpecial
CSS
Name 5 semantic elements
What is the Box Model?
Its hierarchy is as follows:
Margin (space between elements) >
Border (outline of an element) >
Padding (space defining content's start and end) >
Content (itself)
h1, h2, h3 {...}
Multiple Selector
Which is 1-dimensional and which is 2-dimensional? Flexbox or Grid?
Flexbox: 1-dimensional
Grid: 2-dimensional
<style>
body {
display: flex;
justify-content: space-evenly;
}
</style>
BOTH!