Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Simple Order

@SheikBazith

Desktop design screenshot for the Order summary component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


Any way to make code efficient please comment

Community feedback

raya 2,850

@rayaatta

Posted

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 Add cursor:pointer; To it in css

2 I noticed you have two h1s 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; with background-size;contain;

I hope this helps

Your solution looks great 😉

2

Daniel 🛸 44,230

@danielmrz-dev

Posted

Hello @SheikBazith!

Your solution looks great!

I have a suggestion for improvement:

  • For semantic reasons, use main to wrap the main content instead of a div. 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 helpful

0

@SheikBazith

Posted

@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

@SheikBazith

Posted

@danielmrz-dev Will keep that in mind next time I do it. Thank you

1

Please log in to post a comment

Log in with GitHub
Discord logo

Join 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