Design comparison
SolutionDesign
Solution retrospective
Hi Devs, Please feedback and help me why my url background image doesnt work in my github pages?
Community feedback
- @vanzasetiaPosted over 2 years ago
Hi, Jean! 👋
Congratulations on finishing this challenge! 🎉
It looks like you have fixed the issue yourself, the
background-image
is showing up on my end. Good job! 👍I have some feedback on this solution:
- Accessibility
- Good job on using
main
landmark! 👍 - The attribution should be lived inside the
footer
landmark. - Well done on leaving the
alt
empty for the hero illustration! 👏 - For decorative SVGs, add
aria-hidden="true"
attribute to thesvg
. Also, remove thexmlns
attribute from the<svg>
tag, it's unnecessary to be there. 🙂
- Good job on using
<svg aria-hidden="true"> </svg>
- Always wrap text content with a meaningful element (
p
). Only usediv
andspan
for styling purposes. <span class="cancel">Cancel Order</span>
, the Cancel Order should also be an interactive element (button
ora
).- Always specify the
type
of thebutton
. In this case, set the type of them astype="button"
. It's going to prevent the button from behaving unexpectedly (like submitting). - Change the
body
font size instead of thehtml
font size. The root orhtml
font size should be controlled by the user through the browser settings. - Use
rem
or sometimesem
unit instead ofpx
. Usingpx
will not allow the users to control the size of the page based on their needs. - Styling
- Don't limit the height of the
body
element, it will not allow the users to scroll the page if the page content needs moreheight
. Setmin-height: 100vh;
instead. - Let the element inside the card element control or dictate the
height
of the card.
- Don't limit the height of the
One thing that will help people to review your CSS code is to have one CSS file that contains the full CSS code. It's also recommended to implement it in your project, since having one CSS file will boost the speed loading of your website.
I hope you find this information helpful! Happy coding! 😁
Marked as helpful1 - Accessibility
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