Assessment Web Development
2026/2027 – Practice Questions
& Answers with Detailed
Rationales Guaranteed Pass
(GRADED A+)
Question 1
Which HTML element is used to create the largest standard
heading?
A. <heading>
B. <h6>
C. <h1>
D. <head>
Answer: C. <h1>
Rationale: The <h1> element represents the highest-level
heading in HTML. Heading levels range from <h1> through
<h6>, with <h1> being the most prominent.
Question 2
,Which HTML attribute specifies the destination of a hyperlink?
A. src
B. href
C. link
D. target
Answer: B. href
Rationale: The href attribute defines the URL or resource
destination of an anchor (<a>) element. The target attribute
instead controls where the linked resource opens.
Question 3
Which CSS property changes the color of text?
A. background-color
B. font-style
C. text-color
D. color
Answer: D. color
Rationale: The CSS color property specifies the foreground
color of text. background-color controls the element's
background.
Question 4
,Which HTML element creates an unordered list?
A. <ol>
B. <ul>
C. <list>
D. <li>
_Answer: B. <ul>
Rationale: The <ul> element creates an unordered list,
normally displayed with bullets. Individual list items are
represented by <li>.
Question 5
What does CSS stand for?
A. Computer Style Sheets
B. Creative Style Syntax
C. Cascading Style Sheets
D. Cascading Syntax System
_Answer: C. Cascading Style Sheets
Rationale: CSS stands for Cascading Style Sheets. It is used to
control the presentation and layout of HTML documents.
Question 6
, Which CSS selector targets an element with the ID
mainContent?
A. .mainContent
B. #mainContent
C. mainContent
D. *mainContent
_Answer: B. #mainContent
Rationale: The hash symbol (#) identifies an ID selector in CSS.
A period (.) is used for a class selector.
Question 7
Which CSS selector targets all elements belonging to the class
important?
A. #important
B. .important
C. important
D. *important
_Answer: B. .important
Rationale: A period followed by the class name creates a CSS
class selector. Therefore, .important selects every element
with that class.