HTML/CSS · Module 2
Answers and explanations · Connect pages and make media understandable
Compare these references after your own attempt. You can read them at any time; they do not record a live model or vendor run.
HTML/CSS · Module 2
Compare these references after your own attempt. You can read them at any time; they do not record a live model or vendor run.
Compare the reasoning, not just the final appearance. Other correct solutions can satisfy the same requirements.
Change href to #visit. Adding a second id is unnecessary and an element cannot have two id attributes. The visible link text can say “Arrival information” even though the technical identifier is visit.
Garden drawing: “Three raised garden beds beside a wide path and a bench.” Decorative leaf: alt="" because nearby text already supplies the meaning. Image-only link: an alt such as “Accessibility guide” names its destination. Describing the icon’s colors alone would hide the purpose of the link.
<!-- In about.html beside index.html -->
<a href="index.html">Back to events</a>
<!-- In pages/about.html -->
<a href="../index.html">Back to events</a>The second path first leaves pages, then finds index.html in the parent. Copying both examples into the same file would not test the distinction. Create each in its stated folder and use the browser address to confirm it.