Design comparison
Solution retrospective
Any way to make code efficient please comment
Community feedback
- @rayaattaPosted 10 months ago
Hello SheikBazith 👋, congratulations on completing another challenge 🎉 Here are some tips that can help improve your code.
1 Since the
button
is a clickable element Addcursor:pointer;
To it in css2 I noticed you have two
h1
s in your code. Here's a quick guide on how to use them:The
<h1>
to<h6>
tags are used to define HTML headings.<h1>
defines the most important heading.<h6>
defines the least important heading. Only use one<h1>
per page - this should represent the main heading/subject for the whole page. Also, do not skip heading levels - start with<h1>
, then use<h2>
, and so on. You can then style them in you css.Unlike what most people think, it's not just about the size and weight of the text
3 In order to make your solution look closer to the design replace
background-size: cover;
withbackground-size;contain;
I hope this helps
Your solution looks great 😉
2@danielmrz-devPosted 10 months agoHello @SheikBazith!
Your solution looks great!
I have a suggestion for improvement:
- For semantic reasons, use
main
to wrap the main content instead of adiv
. This tag change does not impact your project visually and makes your HTML code more semantic, improving SEO optimization as well as the accessibility of your project.
I hope it helps!
Other than that, great job!
Marked as helpful0@SheikBazithPosted 10 months ago@rayaatta I forgot to add the cursor: pointer will keep that in mind. Will make sure to use the headings tags properly from now on. I have been using cover assuming thats the best way to do it. Thank you will learn to use contain from now on.
0@SheikBazithPosted 10 months ago@danielmrz-dev Will keep that in mind next time I do it. Thank you
1 - For semantic reasons, use
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