Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Insure landing page

Martaā€¢ 630

@martam90

Desktop design screenshot for the Insure landing page coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
2junior
View challenge

Design comparison


SolutionDesign

Solution retrospective


Hello, Why according to HTML report issues role="navigation" and role="main" are not neccessary? And of course, any feedback is more than welcomed.

Thank you

Community feedback

P
Emmilie Estabilloā€¢ 5,540

@emestabillo

Posted

Hi Marta, great job! Site seems responsive. The roles are not necessary in this case because they are redundant. You already used the proper html tags to define landmarks in your document. Check out this [article] (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/Navigation_Role) which clearly explains the purpose of the roles.

A few more thoughts:

  • On larger screens, the entire .wrapper is left-aligned

  • The social media icons in the footer could use a tags. Hover states are also missing there and in the mobile nav.

  • Minor changes in font styling should get the page closer to the design

Hope this helps :-)

2

Martaā€¢ 630

@martam90

Posted

Thank you, your feedback is very helpful. :) On that page there is a lot of different patterns that change whether it is mobile or desktop version. I checked your solution and I noticed that you put them as background-images. In my solution I have put them as img to html. Is there any best practice in similar cases? Thanks

1
P
Emmilie Estabilloā€¢ 5,540

@emestabillo

Posted

@martam90 Yes. If the asset is purely decorative, like those patterns, best to place them as background images. If it adds meaning to the page, like a diagram or a photo that is directly related to the content, use the img tag.

1
P
ApplePieGiraffeā€¢ 30,565

@ApplePieGiraffe

Posted

Hello, Marta! šŸ‘‹

Always nice to see you complete another challenge! šŸ˜€ Well done on this one! Everything looks pretty good and responds well! šŸ‘

Two minor things I suggest are,

  • Adding a hover state to the social media icons near the bottom of the page.
  • Perhaps adding a max-width to the bottom-most button in the mobile navigation so that it isn't too wide when the layout first changes from desktop to tablet.

Keep coding (and happy coding, too)! šŸ˜

1

Please log in to post a comment

Log in with GitHub
Discord logo

Join 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