WorksheetsHTML + CSS + JS
Total questions: 10
Worksheet time: 2mins
What are the main properties of the box-model
top, left, bottom, right
padding, margin, border
color, background-color, font-size
display: flex, justify-content, flex-direction
Which of these is a valid html element
<page>
<aside>
<image>
<paragraph>
var x; console.log(x);
undefined
null
0
type error
How do you apply a CSS style to a specific HTML element by its ID?
.elementID {}
elementID {}
#elementID {}
*elementID {}
Which keyword is NOT used to declare a variable in JavaScript?
var
int
const
let
let x = 5 + "5"; console.log(x);
10
55
undefined
NaN
Which of the following is a correct function declaration?
function myFunc[] {}
function myFunc() {}
def myFunc() {}
function:myFunc() {}
Which of the following statements is false?
HTML files can be styled with CSS.
You can run JavaScript directly in an HTML file.
CSS can add dynamic behaviors to elements like clicks or form validation.
The <script> tag is used to add JavaScript to a page.
What is the value of typeof null
null
object
boolean
undefined
what will return: +!![]
true
false
0
1
