wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

HTML + CSS + JS

Total questions: 10

Worksheet time: 2mins

Name
Class
Date
1.

What are the main properties of the box-model

a)

top, left, bottom, right

b)

padding, margin, border

c)

color, background-color, font-size

d)

display: flex, justify-content, flex-direction

2.

Which of these is a valid html element

a)

<page>

b)

<aside>

c)

<image>

d)

<paragraph>

3.

var x; console.log(x);

a)

undefined

b)

null

c)

0

d)

type error

4.

How do you apply a CSS style to a specific HTML element by its ID?

a)

.elementID {}

b)

elementID {}

c)

#elementID {}

d)

*elementID {}

5.

Which keyword is NOT used to declare a variable in JavaScript?

a)

var

b)

int

c)

const

d)

let

6.

let x = 5 + "5"; console.log(x);

a)

10

b)

55

c)

undefined

d)

NaN

7.

Which of the following is a correct function declaration?

a)

function myFunc[] {}

b)

function myFunc() {}

c)

def myFunc() {}

d)

function:myFunc() {}

8.

Which of the following statements is false?

a)

HTML files can be styled with CSS.

b)

You can run JavaScript directly in an HTML file.

c)

CSS can add dynamic behaviors to elements like clicks or form validation.

d)

The <script> tag is used to add JavaScript to a page.

9.

What is the value of typeof null

a)

null

b)

object

c)

boolean

d)

undefined

10.

what will return: +!![]

a)

true

b)

false

c)

0

d)

1