CSS Syntax, Selectors, and Background (w3schools)

0.0(0)
studied byStudied by 1 person
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/25

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

26 Terms

1
New cards

CSS selectors

are used to “find” (or select) the HTML elements you want to style

2
New cards

simple selectors

select elements based on name, id, class

3
New cards

combinator selectors

select elements based on a specific relationship between them

4
New cards

pseudo-class selectors

select elements based on a certain state

5
New cards

pseudo-elements selectors

select and style a part on an element

6
New cards

attribute selectors

select elements based on an attribute or attribute value

7
New cards

id selector

uses the id attribute on an HTML element to select a specific element

8
New cards

class selector

selects HTML elements with a specific class attribute

9
New cards

universal selector (*)

selects all HTML elements on the page

10
New cards

grouping selector

selects all the HTML elements with the same style definitions

11
New cards

external CSS

you can change the look of an entire website by changing just one file

12
New cards

internal CSS

may be used if one single HTML page has a unique style

13
New cards

inline CSS

may be used to apply a unique style for a single element

14
New cards

p

is a selector in CSS (it points to the HTML elements you want to style: <p>

15
New cards

color and text-align

is a property

16
New cards

red and center

is the property value

17
New cards

selector and decoration block

CSS rule consists of a ________ and _______

18
New cards

CSS background properties

are used to add background effects for elements

19
New cards

background-color property

specifies the background color of an element

20
New cards

opacity property

specifies the opacity/transparency of an element

21
New cards

background-image property

specifies an image to use as the background of an element

22
New cards

background-repeat property

sets if/how a background image will be repeated

23
New cards

background-attachment

specifies whether the background image should scroll or be fixed (will not scroll with the rest of the page)

24
New cards

background shorthand property

to shorten the code, it is possible to specify all the background properties in one single property

25
New cards

background-position property

designates the starting position of a background image

26
New cards

background-size property

sets the size of the background image