Hi Ruth! 👋 Congratulations on completing your first challenge! 🎉
I have some suggestions regarding your code
In CSS always try to use relative units like em or rem instead of absolute units like px. Using these relative units will improve the responsiveness. Read this to understand better 👉 Should we use Rem, Em, or Pixel?.
You used the grid as well as flex for centering the card, I think you should use only one either flex or grid.
Otherwise! You did a great job! 👏
I hope these suggestions will help you to improve! 😄
Hello Giulia! 👋 Congratulations on completing this project! 🥳
To fix accessibility & HTML errors, you need to fix these things in your code:
Always add alternative text to all images you use like: <img src="illustration-1.svg" alt="girl-listening-music">. This specifies an alternate text for an image if the image cannot be displayed.
Other Suggestions 📝
Use relative units like em or rem instead of using absolute units like px. This will improve responsiveness. Read this to understand better 👉 Should we use Rem, Em, or Pixel?
Background image is not responsive while adjusting the screen size. Use background-size: cover;
You missed some properties in the body { } tag. For centering anything use these properties:
Hey Rahil! 👋 Congratulations on completing your first challenge! 🥳
I have a few suggestions:
To fix all the accessibility errors, you need to change these things in your code.
First, every time you start your code always add the <main> tag after the <body> tag. These tags will help to make the code clean and navigation will improve. For Example: If you are making a navbar instead of using the <div> tag, use the <nav> tag for making a navbar.
Other Suggestions 📝
Use Flexbox or Grid for positioning anything on the web page. This will make your code more responsive. 👉 Should we use Flexbox or Grid?
Use relative units like em & rem instead of using absolute units like px. This will improve responsiveness. Read this for more understanding 👉 em or rem VS px
When you download the starter kit of any challenge, read the Readme file and style guide. These pages will help you to understand what to do.
I hope these suggestions will help you to improve 😊
This is my solution to the newbie challenge Order Summary Component. Since it was a fairly easy layout, I decided to use vanilla CSS instead of a preprocessor or a library.
Hi there! 👋 Congratulations on completing this project! 🎉
To fix all the accessibility errors, you need to do these things:
-You must follow a basic web page structure. You used the <main> tag under the <div>. Use <main> only once per page, and put it directly inside <body>. Ideally, this shouldn't be nested within other elements. Read this for a better understanding👉 Document and website structure
Other Suggestions 📖
Use a flexbox or grid to center anything. Using flexbox or grid makes your web page more responsive.
To achieve the desired size of the card, I have a trick, slightly adjust the screen size to 75-80%, which will make your screen 1440px.
Always read README & Style Guide pages. These pages will help you to understand what to do.
Hello Mariam! Congratulations on completing your first project! 🎊
To fix the accessibility error, you need to change this thing in your code:
Just nest the attribution group element inside the <main> tag. This will fix the landmark error.
Other Suggestions:
In CSS always try to use relative units like em or rem instead of absolute units like px. Using these relative units will improve the responsiveness. Read this for a better understanding 👉 Should we use Rem, Em, or Pixel?
There's a slight drop shadow under the card. Try to add a box shadow to the card. This will bring your solution near to perfect.
Hi Anina! 👋 Congratulations on completing your first challenge! 🎉
I've some suggestions regarding your code
You should use External CSS files instead of using Internal or Inline. This practice will make your HTML file have a cleaner structure and become small in size. Read this for a better understanding 👉 Inline vs internal vs external CSS
Use Flexbox or Grid for positioning anything on the web page. This will make your code more responsive. 👉 Should we use Flexbox or Grid?
Use relative units like em & rem instead of absolute units like px, because using em & rem will add responsiveness. Read this 👉 Should we use Rem, Em, or Pixel?
The size of the card is also not correct, use width: 20rem; height: 31rem;, this will fix the size of the card.
Hi Jhay! 👋 Congratulations on completing this project! 🎉
To fix all the accessibility errors, you need to do these things:
You must follow a basic web page structure. You used the <main> tag under the <div>. Use <main> only once per page, and put it directly inside <body>.
Ideally, this shouldn't be nested within other elements. Read this for a better understanding👉 Document and website structure
This structure also applies to headings. The <h1> to <h6> element tags must be in descending order(as per size). Read more 👉 The HTML Section Heading elements
Other Suggestions 📖
Box shadow is a bit high, put 0px for offset x & spread radius set to negative. This will create a very similar effect.
To achieve the desired size of the card, I have a trick, slightly adjust the screen size to 75-80%, which will make your screen 1440px.
Always read README & Style Guide pages. These pages will help you to understand what to do.
Hello Tiksha! 👋 Congratulations on completing your first challenge! 🎉
I have some suggestions regarding your code.
Always start your code by adding <main> tag after <body> tag. And use semantic HTML elements like <section>, <footer>, <nav> to avoid accessibility errors.
You didn't add an alt="girl-listening-to-music" attribute in the <img> element. Every image must contain an alternative text.
You used a backward slash in the src="images\icon-music.svg". Use a forward slash.
Try to use external CSS files instead of using Internal CSS. Internal CSS is not a bad practice, but this might be problematic with multiple CSS files. If you want to use internal CSS to add style to an HTML file, you should learn a CSS framework like Tailwind or Bootstrap.
Hello there! 👋 Congrats! on completing this project
First, you need to solve your accessibility error. Here's how:
The <h1> through <h6> element tags must be in a sequentially-descending order for headings to be in a correct logical order.
I have some other suggestions!
Width doesn't need in the body. And I think you miss to add background size, repeat & color. Please add these to fix them.
background-color: hsl(225, 100%, 94%); background-repeat: no-repeat; background-size: contain;
The size of the card is less. But you can use this hack, just adjust the screen size to 75-80% this will make your screen size 1440px, which is needed to build the desktop version.
You can also see my solution for a better understanding of background & size.
Should I just give the img, h1 & p elements a class each instead of going through .card h1 etc? Since in this challenge I could've done either that or just used h1, img, p selectors by themselves.