Sololearn CSS course The Basics answers
Here are all the questions and answers that I hope will help you learn CSS course.
Other course answers
Sololearn CSS course Working with Text answers
Sololearn CSS course Properties answers
Sololearn CSS course Positioning and Layout answers
Sololearn CSS course CSS3 Basics answers
Sololearn CSS course Gradients & Backgrounds answers
Sololearn CSS course Transitions & Transforms answers
Sololearn CSS course CSS Filters answers
1.1 Lesson
What is CSS?
Question:
Welcome to CSS!
What are style sheets used for?
Answer:
to control the look and feel of web documents
Question:
Why Use CSS?
Why use CSS?
Answer:
it allows for the separation of style and content
2.1 Lesson
Inline, Embedded, External CSS
Question:
Inline CSS
Select the attribute that organizes the inline styling:
Answer:
style
Question:
Embedded/Internal CSS
Where should the style tag be declared to organize an internal CSS?
Answer:
head
Question:
External CSS
Fill in the blanks to call an external stylesheet called "test.css":
Answer:
<head>
<link rel="stylesheet" href="test.css">
</head>
3.1 Lesson
CSS Rules and Selectors
Question:
CSS Syntax
In the rule, the "selector":
Answer:
selects which element to style
Question:
Type Selectors
Rearrange the code to create a valid CSS style rule:
Answer:
<style>
p {
color: blue;
}
</style>
Question:
id and class Selectors
Fill in the blanks to give yellow background color to the element with id="intro", and black text color to the class="mytext":
Answer:
<style>
#intro {
background-color: yellow;
}
.mytext {
color: black;
}
</style>
Question:
Descendant Selectors
Drag and drop from the options below to create a style rule for all paragraphs belonging to the element with id="test":
Answer:
<style>
#test p {
color: red;
}
</style>
4.1 Lesson
CSS Comments
Question:
Comments
Turn the text into a comment in CSS:
Answer:
<style>
/*
This is a comment
*/
</style>
5.1 Lesson
Style Cascade and Inheritance
Question:
Cascade
Which three different sources are responsible for the styles you see on the web page?
Answer:
the default styles of the browser itself
the stylesheet created by the author of the page
the user customized style selections, if any
Question:
Inheritance
What color does the paragraph have?
<style>
body {color: green; }
.mydiv {color: red; }
</style>
<body>
<div class="mydiv">
<p>Some text</p>
</div>
</body>
Answer:
red
6.1 Lesson
Module 1 Quiz
Question:
From the three types of styling, which one is the most useful in terms of website optimization?
Answer:
External
Question:
What is the "style", when creating an internal CSS?
Answer:
tag
Question:
The Style definition rule consists of selector, property and:
Answer:
value
Question:
Fill in the blank to apply white text color to the paragraph.
Answer:
<style>
p {
color: #FFF;
}
</style>