Lesson details

Key learning points

  1. In this lesson, we will look at how we can make use of a DIV tag to apply CSS to different sections of each page on a website.

Licence

This content is made available by Oak National Academy Limited and its partners and licensed under Oak’s terms & conditions (Collection 1), except where otherwise stated.

Loading...

4 Questions

Q1.
What does CSS stand for?
Correct answer: Cascading Style Sheets
Colourful Style Sheets
Computer Style Sheets
Creative Style Sheets
Q2.
In the following CSS, what would be the correct term for "p"?
Property
Correct answer: Selector
Value
Q3.
In the following CSS, what would be the correct term for "12px" and "red"?
Property
Selector
Correct answer: Value
Q4.
In the following CSS, what would be the correct term for "font-size" and "color"?
Correct answer: Property
Selector
Value

3 Questions

Q1.
What is the purpose of the <div> element?
It is used to divide the page up into columns
So that you can divide numbers in calculations within webpages
Correct answer: So that you can divide webpages up into meaningful sections to apply CSS to them
So that you can divide webpages up to get multiple pages
Q2.
Which is the correct syntax for making a DIV which applies the class main?
<class div="main"> </div>
<div class:main> </div>
Correct answer: <div class="main"> </div>
<div-class=main> </div>
Q3.
What is the correct syntax in CSS for making the background colour of a DIV black?
background colour: black;
Correct answer: background-color: black;
color: black
div-background: black;

Lesson appears in

UnitComputing / HTML

Computing