Past questions › sample-q16a
2025 1 mark Short answer Programming for the Web (Year 12) CSS (id v class)
NESA HSC Software Engineering Sample Examination + Marking Guidelines (official, 2025)
A developer added a CSS to their company's website. The developer expected the word "Software" to be bold and italics but it looks like regular text. index.html contains
Software includes code.
; main.css contains body {font-family: Arial;}, h1 {font-weight: bold; text-align: center;} and .qe_item {font-style: italic; font-weight: bold;}. Referring to the code, what is the cause of the problem? Font family is missing / Attribute of has not been defined / main.css has not been correctly referenced / The id qe_item has not been correctly referencedMarking criteria
1: Identifies the correct answer.
Sample answer
The id qe_item has not been correctly referenced. (The HTML uses id="qe_item" but the CSS selector is .qe_item, which targets a CLASS. An id selector is #qe_item.)