wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Cascade Style Sheet

Total questions: 21

Worksheet time: 11mins

Name
Class
Date
1.

Apa kepanjangan dari CSS?

a)

Cascading Style Sheet

b)

Case cading Style Sheet

c)

Cascading Style Shift

d)

Case cading Style Shift

2.

Apa tujuan dari penggunaan CSS?

a)

CSS dapat memformat konten dokumen (ditulis dalam HTML atau bahasa markup lainnya)

b)

Meningkatkan tampilan halaman web

c)

Meningkatkan halaman web menjadi lebih interaktif

d)

benar semua

3.

Kita dapat menggabungkan CSS dalam HTML dengan cara berikut, kecuali...

a)

Menggunakan inline styles

b)

Menggunakan internal styles

c)

Menggunakan external stylesheets

d)

Menggunakan import command

e)

Benar semua

4.

<html>

<p style="color: lime">Packt Publishing</p>

</html>

Penggalan code diatas adalah contoh penggunaan css dengan ...

a)

inline styles

b)

internal styles

c)

external stylesheets

d)

import command

5.

<style type="text/css">

p{ color: red;}

</style>

Penggalan code diatas adalah contoh penggunaan css dengan ...

a)

inline styles

b)

internal styles

c)

external stylesheets

d)

import command

6.

<link rel="stylesheet" href="yourcssfile.css">

Penggalan code diatas adalah contoh penggunaan css dengan ...

a)

inline styles

b)

internal styles

c)

external stylesheets

d)

import command

7.

<style type="text/css"> @import url(change.css); </style>

Penggalan code diatas adalah contoh penggunaan css dengan ...

a)

inline styles

b)

internal styles

c)

external stylesheets

d)

import command

8.

Struktur dasar penulisan CSS

a)

selector {

property:value;

}

b)

selector {

value:property;

}

c)

property {

selector:value;

}

d)

value {

property:selector;

}

9.

Contoh dari id selector

a)

.packt {color: navy;}

b)

#pubman {color: red;}

c)

p, div {color: navy;}

d)

#packt p {color: orangered;}

10.

Contoh dari class selector

a)

.packt {color: navy;}

b)

#pubman {color: red;}

c)

p, div {color: navy;}

d)

#packt p {color: orangered;}

11.

Contoh dari nesting selector

a)

.packt {color: navy;}

b)

#pubman {color: red;}

c)

p, div {color: navy;}

d)

#packt p {color: orangered;}

12.

Contoh atribut CSS untuk nama huruf

a)

font-family: 'Times New Roman', Times, serif;

b)

font-style: normal;

c)

color: lime;

d)

font-size: 1.5em;

13.

Contoh atribut CSS untuk warna huruf

a)

font-family: 'Times New Roman', Times, serif;

b)

font-style: normal;

c)

color: lime;

d)

font-size: 1.5em;

14.

a:link {color: blue;}

dari penggalan code di atas, yang merupakan pseudo class adalah

a)

a

b)

link

c)

color

d)

blue

15.

Atribut CSS untuk menentukan jenis border

a)

border-style: dotted;

b)

border-color: lime;

c)

border-radius: 25px;

d)

border-width: 2px;

16.

Atribut CSS untuk menentukan tebal border

a)

border-style: dotted;

b)

border-color: lime;

c)

border-radius: 25px;

d)

border-width: 2px;

17.

Atribut CSS untuk menentukan lengkung sudut border

a)

border-style: dotted;

b)

border-color: lime;

c)

border-radius: 25px;

d)

border-width: 2px;

18.

Atribut CSS untuk menentukan warna border

a)

border-style: dotted;

b)

border-color: lime;

c)

border-radius: 25px;

d)

border-width: 2px;

19.

Jarak dari border ke luar elemen

a)

margin

b)

padding

c)

radius

d)

space

20.

Jarak dari border ke dalam element

a)

margin

b)

padding

c)

radius

d)

space

21.

Atribut CSS yang dapat digunakan untuk menggunakan lebar jendela sebagai ukuran lebar element

a)

display: none;

b)

display: inline;

c)

display: block;