@TorCanHack
Posted
Hi Weixin, congratulations on finishing the challenge 👏🏽 🎉
I noted some observations you might find helpful.
There’s no heading in your code. I can see the “html and css foundation” text is in a <p>
tag. It is better you nest it in <h1>
heading element as this is the most important text in the document. Search engines use the headings to index the structure and content of the webpage. Using headings help provide a structure and hierarchy.
I also noticed you nested every <img>
tag in a <figure>
element. While the <figure>
element is important, it serves no purpose in the present document. <figure>
should not be used on decorative content like background images or supplementary images like an avi. You use <figure> to mark a self-contained element that is related to the main flow of the document, for example a diagram, or you use it when you need to caption an image. Since this in not the case presently. Using only the <img> with an alt
attribute will suffice.
The borders of the blog preview card are not meant to be sharp; they are curved. You can curve them in css using this:
main {
border-radius: 10px 10px;
}
Great work!
I hope you find this helpful.
Happy coding 🥂
Marked as helpful