BosCOD.com
Menu
Layanan
Alur Pengiriman
Cek Ongkir
Lacak
Masuk
Mulai Kirim
Masuk
Menu
Layanan
Alur Pengiriman
Cek Ongkir
Lacak
Company
Name
*
Phone Number
*
HTML & CSS Quiz
01. Choose the correct HTML element for the largest heading:
<h6>
<head>
<h1>
<heading>
02. Choose the correct HTML element to define important text
<strong>
<b>
<i>
<important>
03. Which is the correct CSS syntax?
body:color=black;
{body:color=black;}
{body;color:black;}
body {color: black;}
04. How do you insert a comment in a CSS file?
// this is a comment
/* this is a comment */
' this is a comment
// this is a comment //
05. How do you add a background color for all elements?
h1.all {background-color:#FFFFFF;}
all.h1 {background-color:#FFFFFF;}
h1 {background-color:#FFFFFF;}
06. What is the correct HTML for creating a hyperlink?
<a>https://boscod.com/</a>
<a> name="https://boscod.com">boscod.com</a>
<a href="http://www.w3schools.com">W3Schools</a>
<a url="http://www.w3schools.com">W3Schools.com</a>
07. How can you make an unumbered list?
<ul>
<ol>
<dl>
<list>
08. Which CSS property is used to change the text color of an element?
fgcolor
color
text-color
09. Which CSS property controls the text size?
font-style
text-style
font-size
text-size
10. What is the correct CSS syntax for making all the elements bold?
<p style="text-size:bold;">
<p style="font-size:bold;">
p {text-size:bold;}
p {font-weight:bold;}
11. How do you display hyperlinks without an underline?
a {text-decoration:none;}
a {underline:none;}
a {text-decoration:no-underline;}
a {decoration:no-underline;}
12. How do you make each word in a text start with a capital letter?
text-transform:uppercase
text-transform:capitalize
You can't do that with CSS
13. How do you select elements with class name
.test
*test
#test
test
14. How do you select all paragraph elements inside a div element?
div p
div.p
div+p
15. How do you group selectors?
Separate each selector with a comma
Separate each selector with a space
Separate each selector with a plus sign
Design Exercise
Instructions:
Read the following article:
Typographic Hierarchy
Based on the information above, redesign the unformatted text
here
into a beautiful article
Design it on Figma and share your URL below
Figma URL
Jawaban Benar dari 15 soal
Total: