
CSS 2-2

Quiz
•
Computers
•
10th Grade
•
Medium
Warda Azzahra
Used 10+ times
FREE Resource
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
<p>hello</p>
Jika ingin teks hello di atas menjadi merah, sintaks CSS yang tepat untuk itu adalah...
p{
text-color: red;
}
.p{
color: red;
}
p{
color: merah;
}
p{
color: red;
}
Answer explanation
property CSS untuk mengubah warna teks HTML adalah color. Nilainya ditulis dalam bahasa inggris, misal merah -> red, biru -> blue. Atau ditulis kode hex, misal putih -> #FFFFFF, hitam -> #000000
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Untuk bisa menambahkan background foto di belakang tulisan seperti pada Gambar, kita bisa menggunakan property CSS...
background-color
background-img
background-image
background-photo
Answer explanation
Property CSS yang digunakan untuk menambahkan background foto atau gambar di belakang tulisan atau konten lainnya adalah background image
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
p{
color: red;
}
Mana yang merupakan selector?
p
color
red
color: red
Answer explanation
p{
color: red;
}
p -> disebut selector
color -> disebut property
red -> disebut nilai/value
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
<p>ini judul</p>
Hasil teks dari elemen tag <p> biasanya lebih kecil. Kita bisa mengubah ukuran teks nya menjadi lebih besar dengan property....
text-size
font-size
font-weight
text-weight
Answer explanation
Property CSS untuk mengatur ukuran teks di HTML adalah font-size.
Sedangkan font-weight digunakan untuk mengatur ketebalan huruf (reguler, light, bold, dll)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kita bisa membuat box dengan sudut yang melengkung seperti pada Gambar dengan property CSS ....
border
padding
margin
border-radius
Answer explanation
Property CSS untuk melengkungkan sudut box adalah border-radius.
Border -> membuat garis tepi box
margin -> jarak di sekitar box
padding -> jarak di dalam box
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
<p id="progress" style="width: 0"> 0% </p>
Jika ingin mengubah width pada elemen tag <p id="progress"> menjadi 100%, kita bisa mengubahnya dari javascript dengan sintaks....
document.getElementById('progress').width = 100%;
document.getElementById('progress').width = 100px;
Answer explanation
format mengubah style CSS dari javascript yang benar:
document.getElementById("id-nya").style.[property css] = "[nilai nya]";
contoh:
mengubah lebar elemen (property CSS -> width)
document.getElementById("progress").style.width = "100%";
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
<div class="header"> Welcome to my page </p>
Jika ingin menambahkan background foto di samping pada elemen tag <p> di atas, maka sintaks CSS yang tepat adalah ....
notes: nama file foto -> foggy.jpg
#header{
background-image: url("foggy.jpg");
}
.header{
background-image: url("foggy.jpg");
}
#header{
background-image: "foggy.jpg";
}
.header{
background-image: "foggy.jpg";
}
Similar Resources on Wayground
10 questions
Bài 8: ĐỊnh dạng đoạn văn bản

Quiz
•
10th Grade - University
10 questions
Test Alocare dinamica

Quiz
•
10th Grade
11 questions
الاسبوع الاول - مراجعه لما سبق 2

Quiz
•
10th Grade
10 questions
HTML/CSS Quiz

Quiz
•
10th Grade - University
10 questions
ASESMEN SUMATIF CSS

Quiz
•
9th - 12th Grade
10 questions
CSS Quiz 1

Quiz
•
6th - 10th Grade
12 questions
HTML Basics Exit Questions

Quiz
•
9th - 12th Grade
10 questions
XI_осн_веб_кон

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade