100Devs Flashcards
How can you make text bold in CSS?
font-weight:
How do you change text color in CSS?
color:
How do you change the font in CSS?
font-family:
How do you change the font size in CSS?
font-size:
How do you underline text in CSS?
text-decoration: underline
How does a parent child look like in html and CSS?
<section>
<p>Hello</p>
</section>
section > p {
color: red;
}
How many id’s with the same value per document are allowed?
One
What ways can you use to change the color in CSS?
word, hex, RGBA, HSLa
What does cascade mean?
What comes below can override what comes above
What is “bold” called?
p {
color: red;
font-weight: bold;
}
Value
What is “color” called?
p {
color: red;
font-weight: bold;
}
Property
What is the “p” called?
p {
color: red;
font-weight: bold;
}
A selector
What is the direct parent of the paragraph?
<section>
<article>
<p>Hello</p>
</article>
</section>
What is the capitalized part called?
p {
COLOR: RED;
font-weight: bold;
}
Declaration
What is the whole thing called?
p {
color: red;
font-weight: bold;
}
Declaration block