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
Request path contains unescaped characters
Not Found

Submitted

An outstanding recreation of an Order Summary component

Scott 280

@Scott1UP

Desktop design screenshot for the Order summary component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Community feedback

P

@Risclover

Posted

Just a small note about your code. You are using a lot of nested <section> elements, and several of them would be better as <div> tags instead.

From the W3C specification:

"The <section> tag is not a generic container. If you need an element only for styling purposes or for scripting, it’s better to use a <div> element instead. The use of the <section> element is appropriate only when the contents of an element are listed in the document’s outline."

0

Scott 280

@Scott1UP

Posted

Hey @Risclover

Thanks for the comment and the feedback — I appreciate you taking the time to actually review my code. Noted about using <div> elements vs. <sections>.

Out of curiosity, would you happen to know of any good resources that detail general best practices for structuring HTML and CSS?

Thank you again for the feedback.

0

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