wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

SKIT HTML, CSS QUIZ

Total questions: 20

Worksheet time: 8mins

Name
Class
Date
1.

Which of these elements are all <table> elements?

a)

<thead> <body> <tr>

b)

<table> <tr> <tt>

c)

<table> <tr> <td>

d)

<table> <head> <tr>

2.

How can you make a numbered list in HTML?

a)

<list>

b)

<li>

c)

<ul>

d)

<ol>  

3.

What is the correct HTML for making a checkbox?

a)

<checkbox>

b)

<input type="checkbox">  

c)

<input href="checkbox">

d)

<input> type=check </input>

4.

What is the correct HTML for making a text input field?

a)

<input type="textfield">

b)

<input type="field">

c)

<text>type="text"</text>

d)

<input type="text"> 

5.

What is the correct HTML for making a drop-down list?

a)

<select>

b)

<list>

c)

<input type="select">

d)

<input type="list">

6.

What is the correct HTML for inserting an image?

a)

<img src="logo.png" alt="Logo"> 

b)

<img href="image.gif" alt="MyImage"

c)

<image src="logo.png" alt="Logo">

d)

<img alt="MyImage">image.gif</img>

7.

Apart from <b> tag, what other tag makes text bold ?

a)

<fat>

b)

<black>

c)

<emp>

d)

<strong>

8.

Tags and texts that are not directly displayed on the page are written in _____ section.

a)

<head>

b)

<title>

c)

<html>

d)

<body>

9.

Which of the following tags do not require a terminator/end tag?

a)

<ul>

b)

<br>

c)

<b>

d)

none of the above

10.

_____ tag is used before beginning of the paragraph text

a)

<hr>

b)

<textarea>

c)

<p>

d)

<text>

11.

How do you select all p elements inside a div element?

a)

div p 

b)

div.p

c)

div + p

d)

* p

12.

How do you select elements with class name "container"?

a)

#container

b)

@container

c)

.container

d)

container

13.

Which property is used to create left margin of an element?

a)

margin: left;

b)

left-margin

c)

left

d)

margin-left

14.

How do you select an element with id "half-width"?

a)

.half-width

b)

#half-width

c)

@half-width

d)

half-width

15.

How do you make the text bold?

a)

font: bold;

b)

text-style: bold;

c)

font-weight: bold; 

d)

text: bold;

16.

How do you make each word in a text start with a capital letter?

a)

font-transform: capitalize;

b)

text-style: capitalize;

c)

font-style: capitalize;

d)

text-transform: capitalize;

17.

How do you display hyperlinks without an underline?

a)

a {text-style: no-underline;}

b)

a {text-decoration: none;} 

c)

div {decoration: none;}

d)

a {text-style: none;}

18.

Which CSS property controls the text size?

a)

font-size 

b)

font-weight

c)

text-weight

d)

text-size

19.

Which CSS property is used to change the text color of an element?

a)

text-color

b)

font-color

c)

color

d)

background-color

20.

Which is the correct CSS syntax?

a)

body {color = black;}

b)

body {color: black;}  

c)

{body-color: black;}

d)

body-color = black;