CSS Syntax & CSS Pseudo Classes Flashcards
What are the names of the individual pieces of a CSS rule?
<b>selector</b>, { <b>declaration</b> } , and declaration is made up of <b>property</b> and a <b>value</b> assigned to the property
In CSS, how do you select elements by their class attribute?
By using a . followed by the name of the class
In CSS, how do you select elements by their type?
By using the element name
In CSS, how do you select an element by its id attribute?
By using # followed by the id name
What is a pseudo-class?
A keyword added to a selector that specifies a special state of the selected element(s).
“Another way to interact with an element.”
What are CSS pseudo-classes useful for?
Changes the appearance of elements when a user is interacting with them.
To implement a special case to an element(s).