+ 2

What's the best way to code clean codes. I want my foundation to be strong in content and presentation. I'm learning on my own.

Mostly CSS3 I need some advice guys. In my area there are no people who do IT I'm just on my own.

6th Aug 2020, 10:52 AM
Malan Kudakwashe Kapishe
Malan Kudakwashe Kapishe - avatar
1 Answer
+ 1
Hi Malan Kudakwashe Kapishe! In order to write clean code you should: #Make code readable for other people #Use meaningful names for variables, functions and methods #Let one function or method perform only one task #Stay consistent (follow same set of rules and develop your style) #Review and change your code regularly This is the answer to the first question. However if you wanted info about clean code in CSS3: Avoid global and element selectors Omit overly specific selectors Use semantic class names Don’t tie CSS too closely to markup structure
6th Aug 2020, 11:57 AM
Chapeau_Blanc
Chapeau_Blanc - avatar