@danielmrz-dev
Posted
Hello there!
Congrats on completing the challenge! ✅
Your solution looks great!
📌 It's recommended to use semantic HTML elements like <ul>
and <li>
for creating lists. This ensures that your code is more accessible, maintainable, and semantically meaningful.
Here's and example on how you can refactor your code:
After Refactoring
<ul class="list-container">
<li><a href="#">Github</a></li>
<li><a href="#">Frontend Mentor</a></li>
<li><a href="#">LinkedIn</a></li>
...
</ul>
By using <ul>
and <li>
, you convey the structure of your content more clearly, making it easier for screen readers and search engines to understand. Additionally, it aligns with best practices for HTML semantics.
I hope you find this helpful!
Keep up the excellent work!
Marked as helpful
@devis4wd
Posted
@danielmrz-dev Thank you very much! I didn0t know I could use <ul>
and <li>
and style them this way. I don0t know why, but I thought they were limited to to bullet-point lists. Even more important, I wasn't aware of their importance on the accessibility side.
Great advice indeed!