Testimonials grid section using html and css only
Design comparison
Solution retrospective
Hello this is my solution for this challenge , any suggestions ?
Community feedback
- @CodeWithAlaminPosted almost 2 years ago
Hi AbdulRhmanπ Great job on completing this challenge! π₯³
I did notice a few areas where your code could be improved.
Some bad practices:
-
Instead of using
<br>
tags to create line breaks, it would be better to use<p>
tags and addmargin
orpadding
to create space between elements. -
Instead of using inline styles like
style="font: inherit;"
, it would be better to define your styles in a separate CSS file or in a
Some CSS suggestions:
-
Use
class
orid
selectors instead of element selectors to be more specific and avoid unintended styling. -
Use
box-sizing: border-box
on all elements to include padding and border in the element's total width and height. -
Consider using a CSS reset or normalize stylesheet to ensure that your styles consistently apply across different browsers.
-
Use the
rem
unit instead ofpx
for font sizes and other dimensions to make it easier to scale your design.
Overall, this is a very well done solution to the challenge. Great job!
I hope this feedback was helpful. π Keep up the good work!π
0@VCaramesPosted almost 2 years ago@CodePapa360
This two comments make no sense ;
- He already using semantic elements (
figure
,figcaption
andblockquote
). - There is no
form
needed in this challenge. - He IS using a
media query
.
- Use semantic HTML tags like <header>, <nav>, and <footer> to give meaning to your content and make it easier for search engines and assistive technologies to understand the structure of your page.
- Consider using <label> tags to associate form inputs with their labels for improved usability.
- Use the @media rule to define responsive styles that apply at different screen sizes.
0 -
Please log in to post a comment
Log in with GitHubJoin our Discord community
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