Responsive testimonial page using HTML and CSS grid
Design comparison
Solution retrospective
- when it comes to writing clean codes, is it about it achieving the intended solution with shorter codes or readability?
- how can i Improve my ability to write clean codes?
Community feedback
- @correlucasPosted about 2 years ago
๐พHello @AustinKing5, congratulations on your new solution!
Your html is working but you can improve it using meaningful tags and replace the divs, for example the main div that takes all the content can be wrapped with
<main>
or section, about the cards you can replace the<div>
that wraps each card with<article>
you can wrap the paragraph with the quote with the tag<blockquote>
this way you'll wrap each block of element with the best tag in this situation. Note that<div>
is only a block element without meaning, prefer to use it for small blocks of content.This article from Freecodecamp explains the main HTML semantic TAGS: https://www.freecodecamp.org/news/semantic-html5-elements/
โ๏ธ I hope this helps you and happy coding!
1@AustinKing5Posted over 1 year ago@correlucas Thank you for introducing me to semantic HTML. It has really improved my coding and made it easier for me to style my projects.
0 - @SatellitePeacePosted about 2 years ago
Hello @AustinKing5
Your code looks good except for the fact that it is not responsive
*** to answer your question ***
-
A clean code is basically, a scalable, maintainable, readable, and easy-to-understand code
-
So yes writing a clean code means writing a code that others can read
-
clean code does not always mean shortcodes, if writing short code means you have to cut corners and use certain hacks then don't write shorter codes because it will make your code difficult to read, understand and maintain
-
However, if refactoring your code to be shorter follows best practices and does not involve hacks and cutting corners then by all means write shorter codes
-
I tried to see why your site is not responsive but I could not access your GitHub so either the link is incorrect or the repo is set to private
I hope these explanations help
1@AustinKing5Posted over 1 year ago@SatellitePeace Your explanation is very helpful and I am happy to say, I come back to it all the time. Thank you very much. I have updated the solution .
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