0

In html file when we write the htmlstructure in the notepad do we make the spaces when we write or they are made automatically?

https://code.sololearn.com/W5ewSZTlpvbU/?ref=app

22nd Jan 2019, 1:28 PM
Hiba
2 Answers
+ 1
You supply/control the indentation. In the Code Playground, a "tab" takes up four "spaces"/characters. There is currently no way to adjust this default to a different number of "spaces"/characters. However, in most text editors (outside the Code Playground), you can. When you press "return" to create a new line, the new line may try to guess how far indented the new line should start, so it is semi-automatic, but you can delete these as desired. HTML can be sensitive to spaces between elements in certain situations, but it ignores indentation and spacing for the most part unless you specify a different behavior (e.g. using the <pre> element or "pre" formatting in your styles). This is in contrast to other languages (like Python) that are sensitive to indentation. I hope this helps! 😊
22nd Jan 2019, 6:27 PM
Janning⭐
Janning⭐ - avatar
+ 1
Thank u very much
22nd Jan 2019, 7:07 PM
Hiba