3.1 css Flashcards
What is CSS?
CSS is a language that describes the style of an HTML document
What does CSS describe?
CSS describes how HTML elements should be displayed
What is the purpose of using CSS?
Use CSS to define the page layout
What is Responsive Web Design (RWD)?
Creating websites which automatically adjust to look good on all devices
What is the ‘mobile first’ approach in web design?
First design the style for mobile devices
Name some browsers to consider for browser compatibility.
Chrome, Firefox, IE, Edge, Safari, Opera
Is using CSS or JavaScript preferred for animations?
CSS is preferred
Where can you find CSS references and tutorials?
https://www.w3schools.com/css/default.asp
When was the CSS1 specification developed?
In 1996
When was CSS2 released?
In 1998
What is the purpose of CSS usage?
Consistent presentation style
What are the levels of style sheets?
Inline, Internal, and External
What is an inline style sheet?
Specified for a specific occurrence of a tag and apply only to that tag
What is an internal style sheet?
Document level, apply to the whole document, in the head section
What is an external style sheet?
Can be applied to any number of documents, in the head section
What is the cascading order browsers use for CSS?
Inline > id > class/pseudo class/attribute > element/pseudo-elements > combinators> * > default style
What is the correct HTML to link to an external style sheet?
< link rel=”stylesheet” type=”text/css” href=”mystyle.css”>
Name the five categories of CSS Selectors.
Simple selectors, Combinator selectors, Pseudo-class selectors, Pseudo-elements selectors, Attribute selectors
What do simple selectors do?
Select elements based on name, id, class
What do combinator selectors do?
Select elements based on a specific relationship between them
What do pseudo-class selectors do?
lvah
Select elements based on a certain state
What do pseudo-elements selectors do?
(bas fl fs)
Select and style a part of an element
What do attribute selectors do?
and struture
Select elements based on an attribute or attribute value
How do you declare declarations in CSS?
tag names {property_1: value_1; property_2:value_2; …}