WorksheetseDIVE: HTML, CSS and JavaScript
Total questions: 10
Worksheet time: 5mins
1. What is the meaning of HTML?
HyperText Machine Language
HighText Markup Language
HyperText Markup Language
HyperTool Machine Language
Who is credited with creating HTML?
Bill Gates
Tim Berners-Lee
Steve Jobs
Dennis Ritchie
What does CSS stand for?
Computer Style Sheets
Creative Style Sheets
Cascading Style Sheets
Colorful Style Sheets
Which is the most important heading tag?
h1
h2
h3
h4
How can you change the font color of a paragraph
font-color: red;
text-color: red;
font-style: red;
color: red;
What does DOM stand for?
Document Object Model
Data Object Method
Dynamic Object Mapping
Document Oriented Method
What is the difference between innerHTML and textContent?
innerHTML returns plain text, while textContent includes HTML tags.
innerHTML modifies only text, while textContent modifies both text and tags.
innerHTML works with both text and HTML tags, while textContent works with plain
innerHTML and textContent are identical in function.
What is returned by getElementById and getElementsByClassName, and how do they differ?
Both return a single element object.
getElementById returns an element object, while getElementsByClassName returns a NodeList.
getElementById returns an element object, while getElementsByClassName returns an HTMLCollection.
Both return an HTMLCollection of matching elements.
Which method is used to select elements using CSS selectors like #id, .class, or tag?
getElementById
getElementsByClassName
querySelector
createElement
Which of the following does NOT belong as part of an event listener?
Event type (e.g., click, mouseover)
Callback function
Target element
Event delegation (e.g., setting the listener on a parent element)
