FBISE, NCP & NBF-aligned resources for Classes 9–12
Browse by Class
Browse by Type
Computer Chapter 3 : Topic 2.5
HTML Document Structure & DOM
1 / 25
A student is developing a simple informational website using HTML and CSS without any server-side processing or database interaction. Which type of website is being created?
Reasoning: Static websites are created using HTML and CSS and do not require server-side processing.
2 / 25
Which environment is most appropriate for a beginner student to create and test a static HTML/CSS website?
Reasoning: HTML/CSS websites are written in a text editor and tested in a web browser.
3 / 25
When creating a static website, which file extension is typically used for HTML files?
Reasoning: HTML files are saved with the .html extension.
4 / 25
A student writes HTML code and opens it in a browser to view the output. What role does the browser play?
Reasoning: Browsers interpret HTML and display the webpage visually.
5 / 25
Which technology is mainly responsible for controlling the layout and appearance of a static website?
Reasoning: CSS is used for styling, layout, and visual presentation.
6 / 25
A student wants to change the background color and font style of a webpage without modifying its structure. Which technology should be used?
Reasoning: CSS modifies appearance without changing content structure.
7 / 25
In a basic HTML document, which element represents the root of the document structure?
Reasoning: The tag is the root element of an HTML document.
8 / 25
Which section of an HTML document typically contains metadata such as title and links to CSS files?
Reasoning: The section contains metadata and references.
9 / 25
Which part of an HTML document contains visible content like text, images, and links?
Reasoning: The contains all visible webpage content.
10 / 25
What is the DOM (Document Object Model) in web development?
Reasoning: The DOM represents HTML as a hierarchical tree structure.
11 / 25
In the DOM tree, what is the parent of all HTML elements?
Reasoning: The element is the root parent of all elements.
12 / 25
Which of the following best describes the relationship between DOM and HTML?
Reasoning: The DOM is a structured representation of HTML elements.
13 / 25
In a DOM tree, which element is usually a child of the section?
Reasoning: The tag is inside the section.
14 / 25
A student observes that HTML elements are arranged in a hierarchical structure. What does this structure represent?
Reasoning: The DOM organizes HTML elements in a tree-like hierarchy.
15 / 25
Which statement correctly describes static website creation?
Reasoning: Static websites are built using HTML for structure and CSS for styling.
16 / 25
In a DOM tree, what is the relationship between a
inside it?
Reasoning: If
is inside
17 / 25
Which tool is commonly used by developers to write HTML/CSS code?
Reasoning: HTML/CSS is written in text editors like Notepad or VS Code.
18 / 25
What is the main advantage of using CSS in static websites?
Reasoning: CSS improves visual design and keeps styling consistent.
19 / 25
Which part of a static website is responsible for defining headings, paragraphs, and images?
Reasoning: HTML defines webpage structure and content.
20 / 25
In a DOM tree, which element is directly under the root?
Reasoning: The element has two main children: and .
21 / 25
A student builds a static website and opens it in multiple browsers without installing any software. What does this indicate?
Reasoning: HTML files can be opened in all modern browsers without extra tools.
22 / 25
What is the correct order of basic HTML document structure?
Reasoning: The correct structure is containing and .
23 / 25
Which of the following best describes the purpose of a static website project for students?
Reasoning: Static websites help students understand basic web structure and design.
24 / 25
In a DOM tree, why is hierarchical structure important?
Reasoning: DOM hierarchy helps browsers and scripts manage elements efficiently.
25 / 25
Which combination correctly represents technologies used in creating a static website?
Reasoning: Static websites are primarily built using HTML for structure and CSS for styling.
Your score is
Restart quiz