Correct indentation when writing HTML can be a lifesaver, especially when you interact with any nested elements. Just accept indentation and be sure to update the surrounding lines when you move or delete an indented element. This makes page refreshing much easier, since the indentation level will give an idea of ββwhere you are on the page without resorting to some kind of Ctrl + F maneuver.
It's also worth noting that if you use CSS in conjunction with HTML, proper naming is crucial! This will improve your workflow and the readability of your code.
I am also a big fan of indentation, spacing, and commenting when writing "real" code (Java, Python, C, etc.). I lean towards (x + 1) over (x + 1), because I personally believe that this is of great importance in readability. I highlight throws, increments, etc., and they catch my eye much easier. Be consistent with your indentation / indentation style and comment liberally - remember that rewriting a method name is not a comment!
Jeff meyers
source share