wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

QUIZ2 PRAKTIKUM WEB1

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

Change the border size of the body or image

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.

Set the color of the border

a)

border-style

b)

border-width

c)

border-color

d)

width

4.

sets the element to one side of the page

a)

margin

b)

width

c)

float

d)

height

5.

sets the color of words in a paragraph

a)

h1 {

color: pink;

}

b)

img {

color: pink;

}

c)

body {

color: pink;

}

d)

p {

color: pink;

}

6.

What does a class do?

a)

adds color to words

b)

adds style to specific elements

c)

adds style to a whole page

d)

adds a lot more work

7.

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;

}

8.

Which selector will change the font of the text?

a)

font-size

b)

text-align

c)

font-famiy

d)

text-decoration

9.

What will this rule set create?


h1 {

text-decoration: underline overline dotted red;

}

a)

red waves under the heading

b)

red dots over and under the heading

c)

red waves over and under the heading

d)

red dots over the heading

10.

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;

11.

Which tag is used to add an image?

a)

<image>

b)

<img>

c)

<<img>>

d)

</image>

12.

Which of the following is the correct way to add an attribute?

a)

<src>

b)

classes:ids

c)

id="title"

d)

<id>

13.

Which of the following is the correct way to add an attribute?

a)

<src>

b)

classes:ids

c)

id="title"

d)

<id>

14.

What symbol should you use to target an id in css?

a)

.

b)

+

c)

id

d)

#

15.

What symbol should you use to target a class name in css?

a)

#

b)

()

c)

.

d)

class

16.

What is the correct syntax to change the background color with css?

a)

background-color: purple;

b)

background-color = "purple";

c)

backgroundcolor=orange

d)

change-background-color: purple

17.

TRUE OR FALSE: HTML is used to style web pages.

a)

True

b)

False

18.

TRUE OR FALSE: CSS is used to style web pages

a)

True

b)

False

19.

What is missing from this HTML skeleton?


<!DOCTYPE html>

<html>

<body>

</body>

</html>

a)

<head></head>

b)

<div></div>

c)

<img></img>

d)

<head>

20.

What is missing from this HTML skeleton?


<!DOCTYPE html>

<html>

<body>

</body>

</html>

a)

<head></head>

b)

<div></div>

c)

<img></img>

d)

<head>