wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

QUIZ 6 HTML CSS part 2 Version 2

Total questions: 40

Worksheet time: 1hrs 13mins

Name
Class
Date
1.

Set the color of the border

a)

border-style

b)

border-width

c)

border-color

d)

width

2.

To create a dotted border around the page

a)

border-style

b)

border-width

c)

border-color

d)

width

3.

sets the color of words in a paragraph

a)

h1 {

color: pink;

}

b)

img {

color: pink;

}

c)

body {

color: pink;

}

d)

p {

color: pink;

}

4.

Select the rule set to make all the text in your web page blue and centered.

a)

p {

color: blue;

}

b)

body {

text-align: left;

color: blue;

}

c)

p {

text-align: center;

color: blue;

}

d)

body {

text-align: center;

color: blue;

}

5.

Which selector will change the font of the text?

a)

font-size

b)

text-align

c)

font-famiy

d)

text-decoration

6.

Which rule set would change the font size to 24?

a)

font-size: 24

b)

size: 24;

c)

font-size: 24;

d)

font size: 24;

7.

CSS stands for

a)

Code Style Sheet

b)

Coding Style Sheet

c)

Cascading Sheet Style

d)

Cascading Style Sheet

8.

Where in an HTML document is the correct placement for an internal style sheet?

a)

In the <head> section

b)

In the <body> section

c)

inside an HTML element

d)

In the <css> section

9.

Which HTML tag is used to define an internal style sheet?

a)

<style>

b)

<css>

c)

<script>

d)

<body>

10.

What type of CSS is used for a single page?

a)

external

b)

inline

c)

internal

11.

What type of CSS is used for a single word?

a)

internal

b)

inline

c)

external

12.

Any content that is visible on your web page should go between these tags.

a)

<html></html>

b)

<style></style>

c)

<body></body>

d)

<head></head>

13.
Where in the HTML document is the correct location to insert code to link to your external CSS? 
a)
In the <head> section
b)
In the <body> section
c)
At the very end of the document
d)
At the very beginning of the document
14.
Which is correct CSS syntax? 
a)
{ body; color=black;}
b)
body: color= black
c)
body {color:black;}
d)
(body color is black) 
15.
What symbols go around the properties for each CSS selector?
a)
< >
b)
[ ]
c)
{ }
d)
( )
16.
Which is the value in this CSS?
p {color: red;}
a)
p
b)
color
c)
red
17.
Which is the selector for a link?
a)
a { }
b)
link { }
c)
href { }
d)
a href { }
18.
What is the difference between HTML and CSS?
a)
CSS is one type of HTML
b)
HTML gives a webpage structure. CSS provides styling.
c)
CSS structures a webpage. HTML strictly provides styling.
d)
There is no difference.
19.
The style that you are applying to a selector, e.g. border.
a)
Property
b)
Value
c)
Keyword
d)
Length Units
20.
If you want to have more than one property for a CSS selector, what character separates them?
a)
comma (,)
b)
semi-colon (;)
c)
colon (:)
d)
dash (-)
21.

What is wrong with this code?

a)

The style sheet <link> statement belongs between <head> and </head>

b)

The style sheet <link> statement belongs between <title> and </title>

c)

The style sheet <link> statement belongs between </head> and <body>

d)

The style sheet <link> statement belongs immediately after the DOCTYPE statement

22.

The parent element of the <body> tag is

a)

<html>

b)

</html>

c)

</body>

d)

<head>

23.
What is the purpose of HTML
a)
To make a formatted document
b)
To make a webpage
c)
To edit photos
d)
To make a creative slide
24.
Which tag is used to create an image?
a)
<image>
b)
<src>
c)
<img>
d)
<a>
25.
<h6> is used for making largest heading.
a)
True
b)
False
26.

<h1 style="font-size:300%;">This is a heading</h1>

What type of CSS is this________?

a)

Inline

b)

Internal

c)

External

d)

None of the Above

27.

The HTML style attribute has the following syntax:

a)

<End tagname style="property:value;">

b)

<tagname style="property:value;">

c)

<dogname style="property:value;">

d)

<Seasonname style="property:value;">

28.

The CSS __________ property defines the background color for an HTML element.

a)

background-color

b)

background-season

c)

background-fall

d)

background-winter

29.

CSS can be added to HTML documents in 3 ways:

a)

Intime

Internal

External

b)

Inline

Internal

Domestically

c)

Inline

Internal

External

d)

None of the above

30.

"styles.css":

body {   background-color: powderblue; } h1 {   color: blue; } p {   color: red; }

What is this code?

a)

An External .CSS File

b)

An Internal .CSS File

c)

An Inline .CSS File

d)

None of the above

31.

·          

  The CSS _______ property defines the horizontal text alignment for an HTML element:

a)

text-align

b)

Font-size

c)

Text-Color

d)

backgound-color

32.

__________by using the style attribute inside HTML elements

a)

external

b)

internal

c)

inline

d)

intime

33.

_________by using a <style> element in the <head> section

a)

External

b)

Inline

c)

Internal

d)

intentional

34.

_________by using a <link> element to link to an external CSS file

a)

Inline

b)

External

c)

Internal

d)

Instruction

35.

 

<p style="color:red;">This is a paragraph.</p>

a)

property = color

Value = red

b)

property = red

Value = color

c)

property = none

Value = none

d)

property = style

Value = color : red

36.

The HTML style attribute has the following syntax:

<tagname style="property:value;">

a)

True

b)

False

37.

________by using the style attribute inside HTML elements

a)

Interaction

b)

Internal

c)

External

d)

Inline

38.

_________by using a <style> element in the <head> section

a)

Inline

b)

interaction

c)

Internal

d)

External

39.

_________by using a <link> element to link to an external CSS file

a)

Inline

b)

Internal

c)

Instruction

d)

External

40.

What is your instructor name?

a)

Mr. Trinity

b)

Mr. Timothy

c)

Mr. Timmity

d)

Mr. Timity