1
Which HTML tag is used to create an ordered list?
A.
B.
C.
D.
Answer & Solution
Answer:
The <ol> tag is used to create an ordered list, with each item being numbered automatically.
2
What is the correct way to create a comment in HTML?
A.
B.
C.
D.
Answer & Solution
Answer:
HTML comments are enclosed between <!-- and -->.
3
How do you define an HTML hyperlink?
A.
B.
C.
D.
Answer & Solution
Answer:
LinkThe <a> tag is used to define hyperlinks, and the href attribute specifies the URL of the page to link to.
4
Which tag is used to define the head section of an HTML document?
A.
B.
C.
D.
Answer & Solution
Answer:
The <head> tag contains metadata about the HTML document, such as the
title and link to external files.
5
Which of the following is the correct way to create a drop-down menu?
A.
B.
C.
D.
Answer & Solution
Answer:
The <select> tag is used to define a drop-down list, and each <option> defines an option within the list.
6
What is the default alignment for text in a paragraph (
) element?
A.
B.
C.
D.
Answer & Solution
Answer:
LeftBy default, text inside a <p> tag is aligned to the left.
7
Which HTML tag is used to define a container for content that should be displayed as a block-level element?
A.
B.
C.
D.
Answer & Solution
Answer:
The <div> tag is a block-level element used to group content
together.
8
What does the
tag create in HTML?
A.
B.
C.
D.
Answer & Solution
Answer:
Horizontal lineThe <hr> tag creates a horizontal rule (line) to visually separate
sections of a page.
9
Which tag is used to define the text for a label element in a form?
A.
B.
C.
D.
Answer & Solution
Answer:
The <label> tag is used to define labels for form input elements.
10
Which tag is used to define the body of an HTML document?
A.
B.
C.
D.
Answer & Solution
Answer:
The <body> tag contains the main content of the HTML document.