Does indenting makes any sense in html script? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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.

26th Jul 2017, 10:23 AM
deepak deo
deepak deo - avatar
2 Answers
+ 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>
26th Jul 2017, 11:45 AM
Krishna Teja Yeluripati
Krishna Teja Yeluripati - avatar
+ 4
It helps increase readability of the code.
26th Jul 2017, 10:26 AM
Bàng Tứ Cường
Bàng Tứ Cường - avatar