
CSS 2-2
Quiz
•
Computers
•
10th Grade
•
Practice Problem
•
Medium
Warda Azzahra
Used 10+ times
FREE Resource
Enhance your content in a minute
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";
}
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Excel Nivel Intermedio
Quiz
•
1st - 10th Grade
7 questions
CSS Rules Quiz-unit 4 CodeHS
Quiz
•
7th Grade - University
10 questions
Bài 26-Hàm trong Python
Quiz
•
10th Grade
10 questions
Kiểm tra 15 phút Tin học 10 - DA - Bài 26,27,28
Quiz
•
10th Grade - University
10 questions
Psaní všemi deseti (2.úroveň)
Quiz
•
9th - 12th Grade
10 questions
TIN HỌC 10 - BÀI 20
Quiz
•
10th Grade
10 questions
Տեքստային խմբագրիչներ
Quiz
•
4th - 10th Grade
10 questions
HTML Introducción
Quiz
•
10th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
