Design comparison
SolutionDesign
Solution retrospective
What are the best practices for HTML? I'm using divs with -, but I don't know what would be the best option.
Community feedback
- @MelvinAguilarPosted 11 months ago
Hello there ๐. Good job on completing the challenge !
I have some suggestions about your code that might interest you.
- Use semantic elements such as
<main>
and<footer>
to improve accessibility and organization of your page. - The
<div>
tag can be useful for styling and positioning, but it doesn't convey any semantic meaning. Instead, consider using more semantic elements like<p>
to better describe the type of content. - The
alt
attribute should not contain the words "image", "photo", or "picture", because the image tag already conveys that information. - For a photo of a person, use their name as the alt text.
I hope you find it useful! ๐ Above all, the solution you submitted is great!
Happy coding! ๐๐โ๏ธ
Marked as helpful0@leozendePosted 11 months agoThanks, I'll try to make the code more semantic. @MelvinAguilar
0 - Use semantic elements such as
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