0
Why does html need indents on each line?
Lessons don't mention any about it, and they don't *seem* necessary?
2 Antworten
+ 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>
+ 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.