@frank-itachi
Posted
Hello there π. You did a good job!
I have some suggestions about your code that might interest you.
HTML π:
- Wrap the page's whole main content in the
<main>
tag. - Make sure that the
<img>
elements in your HTML code has an alternate (descriptive text) short text. The reason for this is that screen readers canβt translate images into text. So to fix this you can do the following<img src=ββ¦β alt=βshort textβ >
CSS π¨:
- You can use grid or flexbox to center the content no matter the viewport size. Since I use grid to achieve such purpose, you can do the following:
body {
min-height: 100vh;
display: grid;
align-items: center;
justify-content: center;
}
As I said, you can use flexbox to center the content and it will work as well.
body {
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
}
I hope you find it useful! π Above all, the solution you submitted is great!
Happy <coding />
π!
Marked as helpful
@karayanikburak
Posted
@frank-itachi thanks for feedback. Are there any courses or sth you can recommend to me?
@frank-itachi
Posted
@karayanikburak
Check out the Kevin Powell YouTube channel. It'll help you a lot...