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

Price Component Page Using HTML & CSS

@Ragu-The-Developer

Desktop design screenshot for the Single price grid component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


Hey This is the project which i have created using HTML & CSS with some flex properties.

Community feedback

Vanza Setia 27,795

@vanzasetia

Posted

Hi, there!

I notice two <html> elements in the HTML file. You should remove the second <html> element. Then, specify the lang attribute on the first <html> element.

You don't need to add type="text/css" on the stylesheet's link element.

For the .container, I recommend using the <div> instead of <header class="container">. For styling purposes, it's better to use <div> element.

Remove all <br> elements. Screen readers may announce them as "break" which creates unnecessary noises. You should use margin or padding to create white space between elements. Learn more — <br>: The Line Break element - HTML: HyperText Markup Language | MDN #accessibility_concerns

I hope you find this useful.

0

@Ragu-The-Developer

Posted

here i dont know how i can create two cards with top card has same box how it is done by css what we have to use specific element?

0

Vanza Setia 27,795

@vanzasetia

Posted

@Ragu-The-Developer

I don't understand your question.

For the specific element, there is no specific element. If it is only for styling purposes then you should use <div> element.

For the layout of the card, you should use grid instead of flexbox. I recommend using this opportunity to learn and use grid.

0

@0xabdulkhaliq

Posted

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.

.

HEADINGS ⚠️:

  • This solution had generated accessibility error report due to lack of level-one heading <h1>
  • Every site must want at least 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.
  • So we want to add a level-one heading to improve accessibility by reading aloud the heading by screen readers, you can achieve this by adding a sr-only class to hide it from visual users (it will be useful for visually impaired users)

.

I hope you find this helpful 😄 Above all, the solution you submitted is great !

Happy coding!

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