0

Why does html need indents on each line?

Lessons don't mention any about it, and they don't *seem* necessary?

25th Jun 2018, 8:53 PM
Ciaran Williams
Ciaran Williams - avatar
2 ответов
+ 6
There isn't a difference to HTML so you don't need them. But, it helps you make sure you have the close tag for each open. This single line works: <!DOCTYPE html><html><head><title>Help</title></head><body>Test</body></html>
25th Jun 2018, 9:34 PM
John Wells
John Wells - avatar
+ 3
All code uses indents. Some are mandatory (python). It's become a habit over the yeaes, as it makes the code easier to read and more visibly appealing.
25th Jun 2018, 9:15 PM
Andre Daniel
Andre Daniel - avatar