Spaces in HTML | Sololearn: Learn to code for FREE!

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

3/23/2020 3:22:34 AM

Luke

4 Answers

New Answer

+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 :)