Fylo Landing page practice using HTML and CSS
Design comparison
Solution retrospective
My 2nd practice for a whole landing page.
I'm still struggling on media query.
Any comment will be appreciated thank you! :)
Community feedback
- @vanzasetiaPosted over 2 years ago
Hi, Patrice! 👋
Could you explain your problem in great detail? You've used the mobile-first approach when writing the CSS which is a good thing. But, based on the CSS, I noticed that you keep adjusting the sizes for the
font-size
,margin
, andpadding
.For the
margin
andpadding
, I highly recommend usingrem
unit instead of viewport units. By using therem
unit, the result is more predictable because it's not changing based on users' screen size.That's the only thing that I can tell to you until you explain the problem. Meanwhile, I have some feedback on this solution.
- Alternative text for images should not contain any words that are related to image (e.g. picture, photo, logo, icon, graphic, avatar, etc). It's already an image element so the screen reader will pronounce it as an image.
- The
label
element requires a text content to be useful. I recommend making it invisible visually but still accessible by screen readers. You can search on the internet aboutsr-only
styling. input
withtype="submit"
was used before thebutton
element exist. It's best to avoid using legacy elements. So, I recommend usingbutton
element instead.- Not all images need alternative text. They are known as decorative images. Decorative images are images that don't contain any information (the only purpose it to make the site beautiful). For those images, I recommend leaving the
alt=""
empty. - There are no
:hover
effects on all the interactive elements. I would strongly recommend adding some:hover
styling to them. - Prefer unitless numbers for line-height values to avoid unexpected results. The MDN documentation explains it well.👍
I hope this helps! Happy coding! 😄
Marked as helpful1
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