HTML & CSS Flashcards
What does cascading style sheets mean?
CSS
How do you include multiple style attributes in a tag?
Separate them with a semicolon
What happens when you apply styles to something higher up in DOM?
The style is applied to everything below it
How do you select multiple elements to style?
Separate them with a comma
How many elements can have a particular ID?
One
How do you use and ID to style?
ID_name
How many tags can be given a particular class?
One or more
How do you use a class selector in CSS?
.class_name
What order does specificity style elements in?
- Inline
- ID
- Class
- Type
What are six less common selectors?
- Child
- Descendant
- Adjacent sibling
- Pseudoclass
- Pseudoelement
What is bootstrap?
A CSS library
What is an HTML attribute?
An attribute, such as lang=”eng”, that provides more detail about that element.
What are block-level attributes?
They are attributes that typically start on a new line and take up the full width available to them.
What are in-line/text-level elements?
They flow within the context of a line, do not start on new lines, occupy only as much width as necessary, and cannot contain block-level elements.
What are container/structural elements?
They are HTML elements that are used to organize and structure content within a webpage, serving as containers for other elements.
What are three tags