Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
22 Cards in this Set
- Front
- Back
What does the following meta tag do? |
Ensures that the whatever browser is being used on a device will be rendered at full device size The initial-scale attribute sets the zoom i.e. 1 = original size. 2 = zoom in by a factor of 2 so only half the page will be seen |
|
What does the "user-scalable=no" attribute do? |
Switches off the ability of a user to zoom in to a page. Looks like: |
|
What does the tag contain? |
All the content for the web page |
|
What is WAI-ARIA |
Web accessibility initiative. It defines a set of attributes which aid accessibility. Although HTML5 contains structural elements which correspond to WAI-ARIA attributes we should include them so older browsers are also accessible |
|
What is the WAI-ARIA role for ? |
|
|
What is the WAI-ARIA role for ? |
|
|
What is the WAI-ARIA role for ? |
|
|
What is the WAI-ARIA role for ? |
There's none |
|
What is the WAI-ARIA role for ? |
|
|
How do we make browsers < IE9 act like they support HTML5? |
We apply some javascript to them via a "shiv" or modernizer Stuff that looks like |
|
What is this |
A conditional comment applicable to IE only |
|
What's the difference between id and class identifiers in css? |
An id is unique and can only apply to 1 element while a class can be applied to many elements |
|
What does this do? h1, h2 { color: green; } |
Applies the css style to h1 and h2 elements |
|
What does this do? .someclass h1 {color: green; } |
Applies the style to h1 elements within the element defined by .someclass |
|
What kind of selector is this? .someclass h1 {color: green; } |
Descendant |
|
How many browser rendering engines are there? |
The four rendering engines are: WebKit, which is used by Apple’s Safari and Google’s Chrome browser Mozilla’s rendering engine, called Gecko, which is used in Firefox Microsoft’s rendering engine, called Trident, used in IE Opera’s rendering engine, called Presto, which is used in the Opera web browser |
|
How do we differentiate css properties according to rendering engine? |
p { -webkit-hyphens: auto; -moz-hyphens: auto; -ms-hyphens: auto; -o-hyphens: auto; hyphens: auto; } |
|
What's an em? |
A relative unit of measurement. 1em = the font size of the element in the box model |
|
What are the 2 ways in which we can specify the box size of an html element in css? |
box-sizing: border-box box-sizing: content box |
|
What is the difference between border-box and content-box? |
With border-box, once you set the width of your block element, any padding and borders you add will be inside that width. In contrast, with the default content-box, any padding and borders will be outside the width. border-box is generally easier to use. However, this is not the default, so to use it, you have to set your element to box-sizing: border-box. |
|
How do we apply border-box settings to an entire website? |
*, *:before, *:after { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;} The asterisks just mean "apply to every element" |
|
What do we use the display css property for? |
For selecting how to display elements (usually either as block or inline. Block elements stack while inline elements flow from left to right |