intro css Flashcards

1
Q

rule set and inline code

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

how to add style sheet

A

open new file with style.css but it still needs to be linked to the html code

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

how to link the html and css files together using the <link href=”” rel=”” attribute

A

You can use the <link></link> element to link HTML and CSS files together. The <link></link> element must be placed within the head of the HTML file. It is a self-closing tag and requires the following attributes:

href — like the anchor element, the value of this attribute must be the address, or path, to the CSS file.
rel — this attribute describes the relationship between the HTML file and the CSS file. Because you are linking to a stylesheet, the value should be set to stylesheet.

When linking an HTML file and a CSS file together, the <link></link> element will look like the following:

<link></link>

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

what is a type selector

A

The type selector does not include the angle brackets.
Since element types are often referred to by their opening tag name, the type selector is sometimes referred to as the tag name or element selector.

p {
color: green;
}
the selector would be the p

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