Design comparison
SolutionDesign
Community feedback
- @mussinoPosted 8 months ago
To improve the semantic structure of the provided HTML code, you can consider using appropriate HTML elements instead of multiple <br> tags. Here's a suggestion:
<div class="qrcode"> <img src="image-qr-code.png" alt="QR Code"> <div> <h1>Improve your front-end skills by building projects</h1> <p>Scan the QR code to visit Frontend Mentor and take your coding skills to the next level</p> </div> </div>
In this revision:
I replaced the <br> tags with appropriate paragraph elements <p> to maintain semantic structure and improve readability. Added an alt attribute to the <img> tag for accessibility.
Marked as helpful0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord