wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

eDIVE: HTML, CSS and JavaScript

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

1. What is the meaning of HTML?

a)

HyperText Machine Language

b)

HighText Markup Language

c)

HyperText Markup Language

d)

HyperTool Machine Language

2.

Who is credited with creating HTML?

a)

Bill Gates

b)

Tim Berners-Lee

c)

Steve Jobs

d)

Dennis Ritchie

3.

What does CSS stand for?

a)

Computer Style Sheets

b)

Creative Style Sheets

c)

Cascading Style Sheets

d)

Colorful Style Sheets

4.

Which is the most important heading tag?

a)

h1

b)

h2

c)

h3

d)

h4

5.

How can you change the font color of a paragraph

a)

font-color: red;

b)

text-color: red;

c)

font-style: red;

d)

color: red;

6.

What does DOM stand for?

a)

Document Object Model

b)

Data Object Method

c)

Dynamic Object Mapping

d)

Document Oriented Method

7.

What is the difference between innerHTML and textContent?

a)

innerHTML returns plain text, while textContent includes HTML tags.

b)

innerHTML modifies only text, while textContent modifies both text and tags.

c)

innerHTML works with both text and HTML tags, while textContent works with plain

d)

innerHTML and textContent are identical in function.

8.

What is returned by getElementById and getElementsByClassName, and how do they differ?

a)

Both return a single element object.

b)

getElementById returns an element object, while getElementsByClassName returns a NodeList.

c)

getElementById returns an element object, while getElementsByClassName returns an HTMLCollection.

d)

Both return an HTMLCollection of matching elements.

9.

Which method is used to select elements using CSS selectors like #id, .class, or tag?

a)

getElementById

b)

getElementsByClassName

c)

querySelector

d)

createElement

10.

Which of the following does NOT belong as part of an event listener?

a)

Event type (e.g., click, mouseover)

b)

Callback function

c)

Target element

d)

Event delegation (e.g., setting the listener on a parent element)