Essential storage keeps sign-in and learning features working. Google Analytics measures visits; Microsoft Clarity records interactions to help us improve usability. Both are optional and stay off until you choose. Read our privacy policy.
Mark up an event checklist coding exercise | SovranCode
Study the question, then follow the complete answer and its reasoning.
01 · QUESTION
What should the HTML contain?
Convert a flat block of event content into one ordered preparation sequence and one descriptive list of event facts.
Requirements
Use an ol with three li steps
Use a dl for event details
Add dt terms for Date and Location
Pair each term with a dd description
Key idea
Use ol when order matters. A dl contains dt terms paired with dd descriptions.
02 · SOLUTION
Complete HTML answer
<main>
<h1>Prepare for demo day</h1>
<h2>Preparation order</h2>
<ol>
<li>Validate the page</li>
<li>Test with a keyboard</li>
<li>Practice the presentation</li>
</ol>
<h2>Event details</h2>
<dl>
<dt>Date</dt>
<dd>September 18</dd>
<dt>Location</dt>
<dd>Studio 4</dd>
</dl>
</main>
03 · EXPLANATION
Why this solution works
The preparation tasks form a sequence, so ol communicates that changing their order changes the meaning. The event facts are name–value pairs, which is the relationship represented by dl, dt, and dd.
Concepts demonstrated
Choose lists based on content relationships
Represent a sequence with ol
Pair names and values with dl
Why this pattern matters
List choice communicates relationships that visual spacing alone cannot express. An ordered list tells the reader that sequence matters, while a description list connects each fact label to its value. This structure remains useful when CSS is unavailable and gives browsers and assistive technology dependable grouping information.
Solution walkthrough
The preparation tasks move into one ol because they should be completed in order.
Every task becomes an li, making the number and boundaries of steps explicit.
The event facts move into one dl rather than remaining colon-separated paragraphs.
Date and Location are dt terms, each followed by the dd value that describes it.
Common mistakes to avoid
Using an unordered list when the sequence changes the outcome
Placing text directly inside ol without li elements
Treating dl as a two-column layout tool for unrelated content
EXERCISE FAQ
Before you move on.
What does “Mark up an event checklist” teach?
This beginner HTML exercise focuses on Choose lists based on content relationships, Represent a sequence with ol, Pair names and values with dl. Its requirements define the exact behavior to implement before you write code.
How should I validate this HTML solution?
Start with the displayed example input and expected output, then test a boundary case suggested by the requirements. Edit the HTML, inspect the live preview, then run the checks before comparing your structure with the complete answer.
When should I open the reference solution?
Attempt Mark up an event checklist first. Then open the read-only solution file to compare the contract, edge-case handling, and implementation choices—not simply to copy the final code.