@mkboris
Posted
Nice work adriantech-beep, you are right It's not good practice to wrap every element in div
because divs aren't semantic. Here's how you can make it better
- All content should be wrapped within landmarks. Wrap a
main
tag around .container. - This isn't a
form
, a form would typically include elements likeinput
,textarea
, orbutton
for user input. You could use adiv
instead ofform
. - For the .navLinks use unordered list for better semantics and accessibility
ul
instead of divs and wrap eacha
inli
. - It's best practice linking Google fonts directly in the HTML
head
section rather than directly in your CSS file as it enables asynchronous downloading, improving page load times. - Media queries, font-size should be defined in
rem
not px
Hope this helps
Marked as helpful
@adriantech-beep
Posted
@mkboris Thank you so much for this. It's a great advice for me as a newbie. I will apply this tips on my next challenges and also try to redo my solution.