Abdul Khaliq 🚀• 72,660
@0xabdulkhaliq
Posted
Hello there 👋. Congratulations on successfully completing the challenge! 🎉
- I have some suggestions regarding your code that I believe will be of great interest to you.
HTML 🏷️:
- You have used
span
element to make the text bold, It's not accessible to screen readers though. The accessibility devices will read aloud those contents inside span as just plain text.
- So, instead of relying on span with custom styling, you can use a semantic element named
strong
. It will help you to make your text bold without adding custom css and apart from that the important thing is usingstrong
will help screen readers like devices to properly announce those content with extra priorities!.
- Additionally for styling part, The
width: 100%
property forbody
is not necessary. because it's a block level element which will take the full width of the page by default.
- So feel free to remove
width: 100%
style rule frombody
this will help you to write efficient code and makes your code more reusable.
.
I hope you find this helpful 😄 Above all, the solution you submitted is great !
Happy coding!
0