0
Does indenting makes any sense in html script?
Script 1: =================== <html> <head> <title></title> </head> <body></body> </html> ===================== Script 2: ===================== <html> <head> <title></title> </head> <body></body> </html> ================== Both scripts yield the same result.
2 Antworten
+ 8
Indentation is a good coding practice because it increases the readability of the code.
No Indentation => (Hard to Read)
<div>
<div>
<p></p>
<div>
<div>
Hello!
</div>
<p></p>
</div>
</div>
</div>
Indentations => (Easy to Read)
<div>
<div>
<p></p>
<div>
<div>
Hello!
</div>
<p></p>
</div>
</div>
</div>
+ 4
It helps increase readability of the code.