@badshab454
Posted
Congrats.
@badshab454
Posted
Congrats.
@0xabdulkhaliq
Posted
Hello there 👋. Congratulations on successfully completing the challenge! 🎉
HTML 🏷️:
non-semantic
markup, which causes lacking of landmark for a webpage<div class="card-body">
element with the semantic element <main>
in your index.html
file to improve accessibility and organization of your page.<div>
or <span>
.
They are use to provide a more precise detail of the structure of our webpage to the browser or screen readers<main>
element should include all content directly related to the page's main idea, so there should only be one per page<footer>
typically contains information about the author of the section, copyright data or links to related documents.HEADINGS ⚠️:
<h1>
h1
element identifying and describing the main content of the page.h1
heading provides an important navigation point for users of assistive technologies, allowing them to easily find the main content of the page.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!
@Hassiai
Posted
Replace <div class="card-body"> with the main tag and <h2> with <h1> to fix the accessibility issues. click here for more on web-accessibility and semantic html
Give thhe alt attribute in the img a value. The value of the alt attribute is the description of the image. For decorative images like icons, there is no need to give it an alt value, for more on alt attribute Click here.
Every html must have <h1> to make it accessible. Always begin the heading of the html with <h1> tag wrap the sub-heading of <h1> in <h2> tag, wrap the sub-heading of <h2> in <h3> this continues until <h6>, never skip a level of a heading.
Give .text a margin value for all the sides, text-align: center and a font-size of 15px which is 0.9375rem, this will be the font-size of both p and h1. Give p a margin-top or h1 a margin-bottom value for the space between the text.
For a responsive content,
padding:16px which is 1rem/em
Use relative units like rem or em as unit for the padding, margin, width values and preferably rem for the font-size values, instead of using px which is an absolute unit. For more on CSS units Click here
Hope am helpful.
Well done for completing this challenge. HAPPY CODING
@khushi0909
Posted
I also just started the journey and submitted the challenge few hours before and What i have learnt are as follows-
1)use min-height in body as 100 vh instead of height -you can see explanation by @abdul Khalid in my solution is as follows I have some recommendations regarding your question "what happens by putting min-height?" that I believe will be of great interest to you. MIN-HEIGHT 📐:
We want to use min-height: 100vh for body instead of height: 100vh. Because setting the height: 100vh may result in the component being cut off on smaller screens, such as a mobile phone in landscape orientation. For example; if we set height: 100vh then the body will have 100vh height no matter what. Even if the content spans more than 100vh. But if we set min-height: 100vh then the body will start at 100vh, if the content pushes the body beyond 100vh it will continue growing. However if you have content that takes less than 100vh it will still take 100vh in space. !
2)use <footer> for the following line- Challenge by <a href="https://www.frontendmentor.io?ref=challenge" target="_blank">Frontend Mentor</a>. Coded by <a href="https://github.com/ddddddd" target="_blank">dddddd</a>. and you can also reach more information about it from Using Semantic HTML Tags Correctly
3)Also there needs to be on h1 in the index.html for seo purpose it helps ,so including that instead of jumping directly to h2 may help https://www.semrush.com/blog/h1-tag/ 4) You need to replace <div class="container"> with the <main class="container"> tag. You'd better use Semantic HTML, and you can also reach more information about it from Using Semantic HTML Tags Correctly.
4)always mention alt ="description of image ",you can read about it ,why its necessary for accessibility
Everything else seems great keep going ...All the Best
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