@rayaatta
Posted
👋hello congratulations on completing this challenge 🎉
What could I have done better or even just differently?
For your first question ,
1.i appreciate the fact that you tried to make your html Semantic but
<main>,<footer>,<header>
are all landmark tags therefore none should be inside the other basically this is their order in the body.
<main></main>
<footer></footer>
2.divs are used for sectioning therefore you should not put text directly into them
Consider <div class="date"> Published <time datetime="2023-12-21 12:00">21 Dec 2023</time> </div>
Would have been much more informative as
Published <time datetime="2023-12-21 12:00">21 Dec 2023</time>
</p>
This enables screen readers to recognize the importance of the text because the div doesn't provide any semantic value. **What could I improve on? ** For your second question, 1.
<div class="attribution">
Should be changed to
<footer class="attribution">
2.setting height:100vh;
on the body causes overflow problems on mobile devices therefore you should instead use min-height:100vh;
3.instead of using a fixed width on the .card you can use min-width instead in order to make it more responsive.
You can also check out my submission
.
That aside your solution is epic🤩
Marked as helpful
@dannypoit
Posted
@rayaatta Thank you for your help!
I took your advice on <main>
and <footer>
and left out <header>
, as it seems there is not one in this project.
As for text directly inside divs, I changed those to <p>
tags, so text is not directly inside divs, but I can still target them with CSS.
I see what you mean about height: 100vh;
on mobile (using responsive mode in the browser) and changed that to min-height.
I understand what you're saying about using min-width on the card to make it more responsive, and I see how you did it with different % widths at different breakpoints. I like the fixed-width for this project, as I'm imagining the client wanting it that way, but I will keep that in mind!