Hi did i need spaces between lines? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

Hi did i need spaces between lines?

Hi did i need to space 4 times between lines i mean when i type <!DOCTYPE> than enter (to come down by one line) did i need to click spacebar 4 times and then <html>.4 times becuz when i learning i see in test codes there is 4 spacebar (free area) between line like this: <!DOCTYPE> <html>

14th Dec 2016, 2:24 PM
UNKN0WN
4 Réponses
+ 2
tab option will help you. and according to platform, this facility is provided..
14th Dec 2016, 2:25 PM
Nawaj Shareef
Nawaj Shareef - avatar
+ 1
No you don't need to do that, spaces are so people can read your code easier. You can do that with no space at all, but when you read it, it will look messy.
14th Dec 2016, 2:26 PM
Uran Kajtazaj
Uran Kajtazaj - avatar
0
Indentation makes code more readable for html. It's conventional, not syntactic.
14th Dec 2016, 2:26 PM
Rishi Anand
Rishi Anand - avatar
0
Ok thanks
14th Dec 2016, 3:17 PM
UNKN0WN