Topic 2: HYPERTEXT MARKUP LANGUAGE (HTML)
Poll Questions:
1. What is the purpose of the `<html>` tag in HTML?
A) To define a paragraph of text
B) To define a heading on a webpage
C) To define the root element of an HTML document
D) To define a hyperlink on a webpage
2. Which of the following is an HTML semantic element?
A) `<div>`
B) `<span>`
C) `<header>`
D) `<p>`
3. What is the purpose of the `alt` attribute in HTML?
A) To specify the text to be displayed if an image cannot be loaded
B) To specify the URL of an image
C) To specify the width and height of an image
D) To specify the border style of an image
4. Which of the following is an HTML attribute?
A) `class`
B) `id`
C) `style`
D) All of the above
5. What is the purpose of the `<table>` tag in HTML?
A) To define a list of items
B) To define a table of data
C) To define a paragraph of text
D) To define a heading on a webpage
6. Which of the following is an HTML tag used for formatting text?
A) `<b>`
B) `<i>`
C) `<u>`
D) All of the above
7. What is the purpose of the `<a>` tag in HTML?
A) To define a paragraph of text
B) To define a heading on a webpage
C) To define a hyperlink on a webpage
D) To define a list of items
8. Which of the following is an HTML tag used for defining a section of a webpage?
A) `<header>`
B) `<footer>`
(C) None of the above
9. What is the purpose of the `<meta>` tag in HTML?
A) To define a paragraph of text
B) To define a heading on a webpage
C) To provide metadata about a webpage
D) To define a hyperlink on a webpage
10. Which of the following is an HTML validation tool?
A) W3C Validator
B) HTML Tidy
C) CSS Lint
D) All of the above
Essay Question:
Describe the importance of semantic HTML in modern web development. How does it improve the
accessibility and search engine optimization of a website? (Word limit: 250)