c777 - Sheet1 Flashcards
The web development trifecta
HTML5, CSS, JavaScript
HTML5 tag defining the main body of a document. Cannot be the child of the header, nav, article, aside, or footer elements.
main
These elements can also be included in article, aside, nav, main, and section elements, not just on the page itself
header and footer
This element identifies the file(s) to use in a video or audio element
source
A set of standards for the writing and/or design of documents
style guide
This version of IE is the first to support HTML5
IE9
What should you do to support HTML5 elements in pre-IE9 browsers.
Add them via JS, make them block via CSS
The term for the part of CSS code that refers to the element you want to style
selector
In CSS, the term for a property and value pair. It must always end with a semicolon
declaration
In CSS, the name for a selector, property and value all grouped together
rule
The word “cascading” in CSS refers to this concept
inheritance
The cascading order of CSS style sheets, ordered from lowest priority to highest
External, embedded, inline
Linking to a CSS file requires these attributes in the link element
rel, type, href
Embedded CSS should be placed in a block defined by this element
style
Inline CSS should be placed in an attribute with this name
style
The arrangement of content elements on a page and how the space is used. Does it fall from top to bottom in stacks, or does some content float to one side or the other?
document flow
These are not used when defining inline CSS styles
curly braces
Use this CSS property to avoid having floating elements before/after another element
clear
In CSS, the “normal, or default”, position of block elements within a page
static
In CSS, positioning a block element relative to another element
relative
In CSS, this causes the element to appear to float above the document and can be positioned as needed. It is completely removed from the rest of the page flow.
absolute
In CSS, this causes the element to remain in the same position when the page is scrolled
fixed
In CSS, this causes the element to inherit its parent’s position
inherit
In the box model, this is the space between the content and the border
padding
In the box model, this is the space between the border and surrounding elements
margin
Add all of these up to get the full size of an element in the box model
content, padding, border, and margin
This CSS3 selector selects every instance of a specified element whose specified attribute ends with the specified value
element[attribute$=value]
This CSS3 selector selects every instance of a specified element whose specified attribute contains the specified substring value
element[attribute*=value]
This CSS3 selector selects every instance of a specified element whose specified attribute begins with the specified value
element[attribute^=value]
This CSS3 selector selects every checked instance of a specified element
element:checked
This CSS3 selector selects every disabled instance of a specified element
element:disabled
This CSS3 selector selects every enabled instance of a specified element
element:enabled
This CSS3 selector selects every instance of a specified element that is the first of its parent
element:first-of-type
This CSS3 selector selects every instance of a specified element that is the last of its parent
element:last-of-type
This CSS3 selector selects every instance of element2 that is preceded by an instance of element1 where both have the same parent. element2 need not be immediately preceded by element1
element1~element2
CSS3 now allows this in the background
multiple images
CSS3 property determining whether the background extends into the border or not (content, padding, or border)
background-clip
CSS3 property defining the location to which the background-position property should be relative (content, padding, or border)
background-origin
CSS3 values used in a background-size property. Last two are optional. Default is auto.
length, percentage, cover, contain
Whereas the opacity property applies to an element and its children, you can use this to specify the opacity of a single element
rgba
CSS3 rule allowing you to specify custom fonts
@font-face
This font weight is the same as normal
400
This font weight is the same as bold
700
Range of font weights
100-900
IE9 and earlier do not support this text property
text-shadow
These two CSS3 properties are required by @font-face
font-family and src
An effect that changes an element’s shape, size and/or position
transform
Property that allows you to change a transformed element’s position
transform-origin
Property that specifies whether child elements will retain the parent element’s position in 3D space
transform-style
Property that specifies the perspective from which a 3D child element is viewed by defining how far it is placed from view
perspective
Property that specifies the bottom position of a 3D element
perspective-origin
Property that defines whether or not an element is visible when it is rotated to face away from the viewer
backface-visibility
These browsers support the transform property
IE10+, Firefox, Opera
These browsers require a vendor prefix for transforms
Chrome 34, Safari 7, IE9
CSS3 effects that change an element from one style to another style
transition
Property that specifies the CSS property that the transition will affect
transition-property
Properties that defines the amount of time that a transition takes in seconds (s) or milliseconds (s). Default is 0. If no value is specified, then no transition occurs
duration
Properties that describe the speed of a transition. Valid options are ease, linear, ease-in, ease-out, and ease-in-out
timing function
Properties that defines how long before a transition or animation begins
delay
At-rule used to create CSS3 animations
@keyframes
@keyframes requires a prefix for these two browsers
Chrome 34 and Safari 7
Property that specifies the identifier for the @keyframes animation that binds it to a selector
animation-name
Property that specifies the number of times the animation will play. Default is 1.
animation-iteration-count
Property that specifies whether to play the animation in reverse on alternate cycles.
animation-direction
Property that specifies whether the animation is running or paused. Default is running
animation-play-state
The resize property only works in these browsers
Chrome, Safari, and Firefox
CSS3 UI property that makes an element look like a standard user interface element, such as a button or window
appearance
CSS3 UI property that forces specified elements fit an area in a certain way
box-sizing
CSS3 UI property that styles an element with an iconic equivalent
icon
CSS3 UI property that specifies the tabbing order for an element
nav-index