- 2

Must you add the spaces between lines?

For example... <html> <head> </head> </html>

4th Feb 2016, 8:24 PM
Blake
11 Answers
+ 3
spaces are for convience. actually the browser's while reading the page ignores extra spaces and line breaks. this way we can write our code arranging them for our understanding and writing in trees embedding and adding more spaces between two different elements and when we really need extra spaces or line break in the webpage we can use the tags. computer will read it anyway but it will make problem for us to read and understand in some languages indents are compulsory but html is not as strict
2nd Nov 2016, 6:08 PM
Sandeep Chatterjee
+ 2
Blake, are you referring to the space at the beginning of each opening tag? That's basically to organize each line of commands to ensure that anyone can know where each group of tags begins & ends. It's way more easier to read once complete your web site.
7th Feb 2016, 8:08 PM
Anthony Carrasco
Anthony Carrasco - avatar
+ 1
It is absolutely necessary to organize your code with standard conventions. Otherwise, you will have difficulty debugging your own code in the future. Even worse, another developer won't understand any of your code.
4th Jun 2016, 9:05 AM
Gabe Rust
Gabe Rust - avatar
+ 1
Keep the code clean and neat
4th Jun 2016, 12:27 PM
Vadim Khublarian
Vadim Khublarian - avatar
0
using space really depends on the individual and if so it must be applied through out...For your work to look presentable
3rd Apr 2016, 11:24 AM
Paul
0
No it's not necessary bro. But this will make your code more easy to understand and read... 👍✌💐
29th May 2016, 2:20 PM
Raj
Raj - avatar
0
its not necessary but if you want to make it more understandable you can...
30th May 2016, 7:59 AM
Nikhil Kumar
Nikhil Kumar - avatar
- 1
for both cases its fine you can do that if you want your code clean and nice in mu opinion its better that way
26th Mar 2016, 2:45 PM
nouamane himam
nouamane himam - avatar
- 1
In HTML, whitespace does not matter. You can indent, add spaces, add lines. It does matter inside of a tag, however. spaces are part of the syntax.
13th Apr 2016, 5:08 PM
Brad Mauger
Brad Mauger - avatar
- 1
No the spaces are not needed. If you compare some code you can find currently, you will find ones with spaces easier to read and understand so making it with spaces is a good practice.
28th May 2016, 7:26 PM
Blake Rychner
- 2
no. it is just nice/good practice to make your code readable
28th Mar 2016, 9:49 PM
Alfi Jonas
Alfi Jonas - avatar