Situation – Organizing a School STEM Fair Webpage
Grade 9 learners are creating a webpage for their school's STEM Fair. It will show registration steps, required materials, scientific terms and their meanings, and projects grouped under Science, Technology, Engineering, and Mathematics. Registration instructions have two sections: the first contains Steps 1–3, while the second must continue with Step 4.
A teammate uses bullets for the registration steps. Which revision would best help participants follow the correct sequence?
A. Use <ul> to display the steps with square markers.
B. Use <ol> to display the steps with numbered markers.
C. Use <dl> to display the steps beside their meanings.
D. Use <p> to display the steps in separate paragraphs.
B. Use <ol> to display the steps with numbered markers.
Situation – Tracking Reviewed Lessons
The Grade 9 ICT class creates a review page with links to lessons on HTML tables, forms, and multimedia. During testing, all lesson links look the same. The teacher wants links to appear blue before students open them and purple after students visit them.
Mika tests the links on the school announcements page. An unvisited link turns orange when she places the mouse pointer over it. A visited link stays purple when she does the same. She checks the stylesheet and finds these rules in this order:
a:link { color: blue; }
a:hover { color: orange; }
a:visited { color: purple; }
Why does the visited link stay purple while Mika's mouse pointer is over it?
A. The link matches both rules, and the later a:visited rule sets its color.
B. The link matches both rules, and the earlier a:hover rule sets its color.
C. The link matches only a:visited because visited links cannot match a:hover.
D. The link matches only a:hover because moving the pointer clears its visited state.
A. The link matches both rules, and the later a:visited rule sets its color.
Situation – Styling the Club Recruitment Page
Your class is updating the school's Club Recruitment Day webpage. The adviser wants some styles to apply across the page and others to affect only specific announcements. Your group uses this HTML to test each change:
<h1>Club Recruitment Day</h1>
<p id="deadline" class="left">Register by Friday.</p>
<p class="left large">Visit the booths during lunch.</p>
<p>Bring your student ID.</p>
<a class="left" href="clubs.html">View the club list</a>
A classmate uses .left to highlight the registration deadline. During testing, the booth announcement and club link are highlighted too. Which selector should replace .left to highlight only the deadline?
A. #deadline
B. .deadline
C. p.left
D. p
A. #deadline
The group uses background-image: url("school-logo.png"); on the <body>. The logo appears in rows across the page. The adviser wants one copy in the upper-right corner. Which declarations should the group add to the body rule?
A. background-repeat: repeat-x; background-position: right top;
B. background-repeat: no-repeat; background-position: left top;
C. background-repeat: repeat-y; background-position: right top;
D. background-repeat: no-repeat; background-position: right top;
D. background-repeat: no-repeat; background-position: right top;
Situation – Creating an Online Class Schedule
Grade 9 learners are creating a class schedule for their school webpage using HTML tables. The schedule has three columns: Time, Subject, and Teacher. The team must clearly identify column headings, add class entries, improve readability, and merge cells where needed.
During the review, the team notices that "Time," "Subject," and "Teacher" use <td> tags just like the class entries. Which revision best identifies these cells as column headings?
A. Replace their <td> tags with <tr> tags.
B. Replace their <td> tags with <th> tags.
C. Replace their <td> tags with <table> tags.
D. Replace their <td> tags with <p> tags.
B. Replace their <td> tags with <th> tags.
The second registration section displays Steps 1, 2, and 3 instead of Steps 4, 5, and 6 Which opening tag should replace its existing <ol> tag?
A. <ol type="4">
B. <ol start="3">
C. <ol start="4">
D. <ol type="I">
C. <ol start="4">
Which pair of CSS rules should the class use to meet both requirements (blue before opening, purple after visiting)?
A. a:link { color: purple; } and a:visited { color: blue; }
B. a:link { color: blue; } and a:visited { color: purple; }
C. a:link { color: blue; } and a:hover { color: purple; }
D. a:link { color: blue; } and a:active { color: purple; }
B. a:link { color: blue; } and a:visited { color: purple; }
Situation – Styling the Club Recruitment Page
Your class is updating the school's Club Recruitment Day webpage. The adviser wants some styles to apply across the page and others to affect only specific announcements. Your group uses this HTML to test each change:
<h1>Club Recruitment Day</h1>
<p id="deadline" class="left">Register by Friday.</p>
<p class="left large">Visit the booths during lunch.</p>
<p>Bring your student ID.</p>
<a class="left" href="clubs.html">View the club list</a>
The adviser wants all three paragraphs to have green text while the heading and link keep their current colors. Which selector should the group use?
A. .left
B. #deadline
C. p
D. *
C. p
A tester says the words in the registration instructions are too close together. The adviser asks the group to add 4 pixels of space between words while keeping the spacing between letters and the text size unchanged. Which declaration should the group add?
A. letter-spacing: 4px;
B. line-height: 4px;
C. word-spacing: 4px;
D. font-size: 4px;
C. word-spacing: 4px;
The team wants a "CLASS SCHEDULE" heading in the first row to stretch across all three columns. Which code achieves this?
A. <tr><th rowspan="3">CLASS SCHEDULE</th></tr>
B. <tr><th colspan="2">CLASS SCHEDULE</th></tr>
C. <tr><th colspan="3">CLASS SCHEDULE</th></tr>
D. <tr><th rowspan="2">CLASS SCHEDULE</th></tr>
C. <tr><th colspan="3">CLASS SCHEDULE</th></tr>
The team wants the four STEM categories to appear with uppercase letters: A., B., C., and D. Which opening tag should they use?
A. <ol type="a">
B. <ul type="A">
C. <ol type="A">
D. <ol type="1">
C. <ol type="A">
Situation – Preparing a School Water-Saving Webpage
In ComLab3, Ana, Ben, Mika, and their group are creating a school webpage for their STEM project on water conservation. The webpage will present their measurements of water wasted by leaking faucets and their proposed solutions. They use HTML editors to prepare the page and a browser to check the output. Before submitting, they must save the webpage correctly, update its content, repair its code, and ensure that it opens locally.
Ben changes a heading in Notepad. Before saving, he refreshes the correct page.html in his browser and still sees the old heading. He then saves the file and refreshes again. What result should he expect?
A. The page will show the updated heading.
B. The page will display both heading versions.
C. The page will remove all heading formatting.
D. The page will convert into a plain-text file.
A. The page will show the updated heading.
Situation – Styling the Club Recruitment Page
Your class is updating the school's Club Recruitment Day webpage. The adviser wants some styles to apply across the page and others to affect only specific announcements. Your group uses this HTML to test each change:
<h1>Club Recruitment Day</h1>
<p id="deadline" class="left">Register by Friday.</p>
<p class="left large">Visit the booths during lunch.</p>
<p>Bring your student ID.</p>
<a class="left" href="clubs.html">View the club list</a>
Before publishing, the group wants to add a temporary outline to every HTML element so they can inspect the page layout. Which rule should they use?
A. p { outline: 1px solid red; }
B. .left { outline: 1px solid red; }
C. * { outline: 1px solid red; }
D. #deadline { outline: 1px solid red; }
C. * { outline: 1px solid red; }
The adviser wants the banner to have yellow text, a black background, and a 2-pixel solid orange border. Which rule meets all three requirements?
A. .banner { color: black; background-color: yellow; border: 2px solid orange; }
B. .banner { color: yellow, background-color: black; border: 2px solid orange; }
C. .banner { color: yellow; background-color: orange; border: 2px solid black; }
D. .banner { color: orange; background-color: black; border: 2px solid yellow; }
B. .banner { color: yellow, background-color: black; border: 2px solid orange; }
Ms. Santos teaches two consecutive classes. The team uses <td rowspan="2">Ms. Santos</td> in the first class row and adds another teacher cell in the second row. This creates an extra cell in the second row. How should the team fix the table?
A. Replace rowspan="2" with colspan="2" in the first row.
B. Remove the teacher cell from the second class row.
C. Add another teacher cell to the first class row.
D. Remove the subject cell from the second class row.
B. Remove the teacher cell from the second class row.
Situation – Adding Borders to the Club Recruitment Webpage
The class is testing the online registration page before Club Recruitment Day. Testers notice that the instructions sit too close to the edge of their box and that the Register button needs a different border.
The text inside the instructions box sits too close to its border. The adviser asks you to add 12 pixels of space between the text and the border on all four sides. Which declaration should you add to the instructions box?
A. margin: 12px;
B. padding: 12px;
C. border-width: 12px;
D. border-radius: 12px;
B. padding: 12px;
A teacher asks learners to find and fix a missing closing tag. They can use either a text-based editor or a visual editor (WYSIWYG). Which approach would best help them complete the task?
A. Adjust the browser zoom until the gap on the webpage disappears.
B. Replace the webpage with a screenshot showing how the page appears.
C. Rearrange the visual layout to close the gap on the webpage.
D. Inspect the HTML source and match opening tags with closing tags.
D. Inspect the HTML source and match opening tags with closing tags.
Situation – Styling the Club Recruitment Page
Your class is updating the school's Club Recruitment Day webpage. The adviser wants some styles to apply across the page and others to affect only specific announcements. Your group uses this HTML to test each change:
<h1>Club Recruitment Day</h1>
<p id="deadline" class="left">Register by Friday.</p>
<p class="left large">Visit the booths during lunch.</p>
<p>Bring your student ID.</p>
<a class="left" href="clubs.html">View the club list</a>
The adviser wants to left-align the deadline and the booth announcement. The third paragraph and the club link should keep their current alignment. Which selector targets exactly those two paragraphs?
A. p
B. .left
C. .large
D. p.left
D. p.left
Situation – Preparing the TLE Exhibit Webpage
Your class is building a webpage for the school's TLE exhibit. The page will show CAD Challenge.mp4 so visitors can watch students use drafting software. It will also let visitors listen to Soda Pop.mp3 through a separate audio player. Before the exhibit opens, your group tests the webpage on the school computers.
During testing, the video has no visible play or pause buttons. The teacher wants visitors to start and pause it on their own while keeping the video player at its current size. Which change meets the teacher's requirement?
A. Add autoplay to the opening <video> tag.
B. Add controls to the opening <video> tag.
C. Add muted to the opening <video> tag.
D. Add loop to the opening <video> tag
B. Add controls to the opening <video> tag.
Situation – Improving the School Announcement Page
Your class is preparing a webpage for Club Recruitment Day. During testing, students say the announcement paragraphs are hard to read from the back of the computer lab. The adviser asks your group to adjust the paragraphs while keeping the page heading unchanged. Your group starts with this CSS rule from the sample:
p {
font-size: 20px;
font-family: Georgia, serif;
}
The adviser asks your group to change the paragraph text size from 20px to 24px. A classmate suggests writing 24px font-size;. Which of the following should the group use?
A. 24px font-size;
B. font-family: 24px;
C. font-size: 24;
D. font-size: 24px;
D. font-size: 24px;
The Register button currently has a 2-pixel solid blue border. The adviser's design calls for a 2-pixel dashed red border. The button's background should keep its current color. Which rule makes the requested changes?
A. button { border: 2px solid red; }
B. button { border: 2px dashed blue; }
C. button { border: 4px dashed red; }
D. button { border: 2px dashed red; }
D. button { border: 2px dashed red; }
In ComLab3, Ana saves identical HTML code in two local files, page.txt and page.html. When she opens them in the browser, page.txt shows the tags as plain text, while page.html displays a formatted heading. What best explains this difference?
A. The folder name tells the browser how to size the heading.
B. The file extension helps the browser decide how to interpret it.
C. The browser converts the text file into an image for display.
D. The editor removes the tags when saving code as an HTML file.
B. The file extension helps the browser decide how to interpret it.
Situation – Improving the Club Recruitment Webpage
Your class is preparing a Club Recruitment Day webpage. During testing, the adviser notices that the registration banner uses the wrong colors, the school logo repeats across the page, and some text needs formatting. Your group must choose the CSS changes that match the adviser's instructions.
The adviser wants the registration deadline centered and marked with a red line below the words. The text itself should keep its current color. Which declarations should the group use?
A. text-align: center; text-decoration-line: underline; text-decoration-color: red;
B. text-align: center; text-decoration-line: overline; text-decoration-color: red;
C. text-align: right; text-decoration-line: underline; text-decoration-color: red;
D. text-align: center; text-decoration-line: underline; color: red;
A. text-align: center; text-decoration-line: underline; text-decoration-color: red;
The audio player appears, but the school's web server reports that it cannot find the file. The group checks the webpage folder and confirms that the file is named Soda Pop.mp3 and is stored beside index.html.
<audio controls>
<source src="SodaPop.mp3" type="audio/mpeg">
</audio>
Which change addresses the reported problem?
A. Change the source to src="SodaPop.MP3".
B. Change the source type to type="video/mp4".
C. Change the opening tag to <audio autoplay>.
D. Change the source to src="Soda Pop.mp3".
D. Change the source to src="Soda Pop.mp3".
The adviser wants the browser to use Arial when it is available and a sans-serif font as a fallback. Which declaration should replace font-family: Georgia, serif;?
A. font-family: Arial, sans-serif;
B. font-family: sans-serif, Arial;
C. font-style: Arial, sans-serif;
D. font-size: Arial, sans-serif;
A. font-family: Arial, sans-serif;