+ 7

Suggestions to make my code better

im a beginner trying to learn new things in coding, i have posted a few codes let me know here if theres anything that can make my codes better or there's any mistake so i can learn to fix it.

19th Mar 2019, 7:53 PM
the designer
the designer - avatar
3 Answers
+ 3
My recommendation is to read Code style guides and learn from them. Here are two examples from Google and Mozilla : https://google.github.io/styleguide/htmlcssguide.html https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Coding_Style
19th Mar 2019, 10:08 PM
Jorge
Jorge - avatar
+ 6
thank you! i really appreciate your help :) ❀
19th Mar 2019, 10:35 PM
the designer
the designer - avatar
+ 2
1. You should learn some css naming convension (for example "bem"), it will help you to deal with CSS structure 2. Try to avoid using ids for styling. 3. I cant see any responsive example of your code, it is not obvious if you are aware of this standard I think the best way to learn it is to code some template with at least two breakpoints (mobile/desktop). You can find some preety designs on pinterest or behance. I hope it isnt too overwhelming, you can do it!
19th Mar 2019, 10:32 PM
Habababa