HTML, CSS, JavaScript, FlexBox, Responsive Grid etc..
Design comparison
Solution retrospective
Hey Guys ! Any comments or feedback here? Happy coding π
Community feedback
- @dwhensonPosted about 3 years ago
hey Marufjan nice job there! π Looking good. Here's a few things you might like to consider:
When working with
h
elements, it's best not to skip levels so only ah2
should follow ah1
. At the minute you go fromh1
toh4
. I would just ah2
and then just use CSS to style it as you like.I might be missing your labels linked to your inputs, but I can't see them? Just in case, an input must always have a label associated with it.
Here's a nice article that gives a good explanation of why this is: https://css-tricks.com/html-inputs-and-labels-a-love-story/ (you can always hide the label using CSS if you don't want people to see it)
If you don't want the label to appear on the page you can apply a 'screen-reader-only' class to hide the content. If you google that you'll soon find lots of solutions and it's a good technique to be familiar with and it'll be useful in a lot of other challenges.
Also on the inputs and buttons, if you remove outline styles then it is important to add back in your own custom outline styles as otherwise it can make it very hard for keyboard users to navigate the page.
If you donβt like the default styles I have found the advice in this article very useful, and use it in pretty much all my projects: https://css-tricks.com/the-focus-visible-trick/
/* Add styled focus states on tab not hover */ :focus-visible { outline: 3px dotted currentColor; outline-offset: 0.25rem; } :focus:not(:focus-visible) { outline: transparent; }
Hope this helps!
Cheers π
Dave
Marked as helpful1 - @MarufjanPosted about 3 years ago
Hi Dave! I appreciate all your work there. I will consider those things next time π Thank you π€
0
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