+ 1
Spaces in HTML
Hey, I’m currently learning about HTML. My question is, why are there so many spaces and indents when coding? Does it matter? How do they work? It doesn’t really explain it in the course. Thanks!
4 odpowiedzi
+ 5
It does not really matter the indentation of the labels, it does not affect the content of the web page. The problem happens when your web page has a lot of code, if you do not make the identation it takes longer to edit and correct the syntax errors. That is why it is recommended to identity your code as it helps to optimize the code edition
+ 1
Indentation is generally used to make a code neater and make it more readable. So even if you don't put indentation and spaces it doesn't really matter in HTML. Indentation helps developers to understand code more easily.
0
thank you everyone :)