Design comparison
Solution retrospective
I tried this one, Can any one suggest me how to improve this code?
Community feedback
- @0xabdulkhaliqPosted over 1 year ago
Hello there 👋. Congratulations on successfully completing the challenge! 🎉
- I have other recommendations regarding your code that I believe will be of great interest to you.
PARAGRAPHS ⚠️:
- This solution consists incorrect usage of
<p>
so it can cause severe accessibility errors due to incorrect usage of paragraph element<p>
- Every site must want only one
h1
element identifying and describing the main content of the page.
- An
h1
heading provides an important navigation point for users of assistive technologies, allowing them to easily find the main content of the page.
- In this solution there's
<p>
element which is this<p>Improve your...</p>
, you can preferably use<h1>
instead of<p>
. Remember<h1>
provides an important navigation point for users of assistive technologies so we want to use it wisely
- So we want to add a level-one heading to improve accessibility
- Example:
<h1>Improve your front-end skills by building projects</h1>
- If you have any questions or need further clarification, and feel free to reach out to me.
- If you have any questions or need further clarification, you can always check out
my submission
and/or feel free to reach out to me.
.
I hope you find this helpful 😄 Above all, the solution you submitted is great !
Happy coding!
Marked as helpful0@RKannaPosted over 1 year agoThank you, I will update the code with your suggestion. @0xAbdulKhalid
0 - @khushi0909Posted over 1 year ago
1)Read about h1 tag its the most important and every website should have atleast one https://www.semrush.com/blog/h1-tag/
2)you should learn about semantics HTML and using it for ex footer ,main etc
3)image should always have alt="some description". some description about image should always be there for accessibility reasons
https://www.davidmacd.com/blog/alternate-text-for-css-background-images.html
4)i feel something wrong with the positioning of the background image or color you have used ,its creating some problem in responsiveness view for different screen and you are getting lot of scroll bar both vertically and horizontally ,it should not be ideally as per design like this
5)i personally feel using flexbox in the body tag will also be better' and mentioning in body min-height as 100vh may help (read about min-height 100vh more)
All the best
Marked as helpful0
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