+ 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!

23rd Mar 2020, 3:22 AM
Luke
3 Antworten
+ 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
23rd Mar 2020, 3:27 AM
Cmurio
Cmurio - avatar
+ 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.
23rd Mar 2020, 6:01 AM
Taranjeet
Taranjeet - avatar
0
thank you everyone :)
23rd Mar 2020, 3:25 PM
Luke