Intro to CSS Flashcards

1
Q

What does CSS stand for?

A

Cascading Style Sheets

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is CSS used for?

A

Styling HTML content on a web page

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does syntax mean?

A

Method

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the two different syntaxes for writing CSS code?

A

Ruleset and Inline Style

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Declaration

A

Apply a style to a selected element

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Selector

A

Target the element that is styled

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Declaration box

A

The code in between the curly brackets, contains declarations

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Property

A

The first part of the declaration that tells what part of the element will be modified

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Value

A

The value of the property

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Style attribute

A

Used to add CSS inline code to an opening tag in an HTML element

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Why is <em>inline style</em> good for CSS?

A

It allows you to write CSS code in an HTML document

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

How do you style an HTML element?

A

Using the <em>style</em> attribute, set it to the CSS styles you want to add
Example:
< p style = ‘ color : red ; ‘ > Text < / p >

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How do you add more than one styles to a single element

A

Do it in the same attribute, but add a ; after each style
Example:
< p style= ‘ color : red ; font-size : 20px ‘ > Text < /p >

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

<em>Style element</em>

A

Put inside the head, it allows you to write CSS code in its own dedicated section

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is an internal stylesheet

A

CSS code inside the style document

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

<em>Link element</em>

A

Links HTML and CSS files together. It is put in the head and needs two attributes, the href attribute and rel (relationship) attribute, which is set to stylesheet in this situation