Design comparison
SolutionDesign
Solution retrospective
I know this is a very simple challenge, however, any feedback is more than welcome.
Community feedback
- @VCaramesPosted almost 2 years ago
Hey there! 👋 Here are some suggestions to help improve your code:
- Your **HTML should have ** a
main
element that will assist in identifying the main content of your site. In this, case themain
element would serve as the "container" of your component.
More Info:📚
- Since the image in this component add value and serve a purpose it needs to be accessible. The image needs to be applied using the
image
element and not thebackground-image
property, as it will let apply analt tag
description to image stating what the image is and where it leads to.
- The
width: 100%;
is not needed in thebody
since it is already 100% by default. you will also change theheight: 100vh;
tomin-height: 100vh;
for better responsiveness.
- Change
width
tomax-width
in your component’s container to make it responsive. You will also want to remove theheight
as it is unnecessary.
- Change
width
tomax-width: 100%
in your image to make it responsive. You will also want to remove theheight
as it is unnecessary.
- For improved accessibility 📈 for your content, it is best practice to use
rem
for your property values. Using this unit gives users the ability to scale elements up and down, relative to a set value.
If you have any questions or need further clarification, feel free to reach out to me.
Happy Coding!🎄🎁
0 - Your **HTML should have ** a
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