My code: https://codepen.io/wbfsyb/pen/eYJYBaB
I have completed my test, and result seems alright. But I think my code is kind of messy, anyone has any suggestions about how to make the code more readable? Thanks a lot.
My code: https://codepen.io/wbfsyb/pen/eYJYBaB
I have completed my test, and result seems alright. But I think my code is kind of messy, anyone has any suggestions about how to make the code more readable? Thanks a lot.
Hey there @wbfsyb, thanks for sending in your code, and welcome to the community!
Your answer to this assessment is really good, and I don’t really have any specific improvements to call out.
In terms of messy code, it looks ok to me. Your CSS declarations are all on separate lines, and the indentation is fine.
The only small comment I had was that it would be nice to see some more whitespace in your selectors, so they are easier to read. So for example, you could write
h2+p{
as
h2 + p {
instead.
Thank you~~ The advice is very useful and I will keep that in mind when I am coding ~~ again, thanks a lot~~