- 2
Must you add the spaces between lines?
For example... <html> <head> </head> </html>
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
+ 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.
+ 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.
+ 1
Keep the code clean and neat
0
using space really depends on the individual and if so it must be applied through out...For your work to look presentable
0
No it's not necessary bro. But this will make your code more easy to understand and read... đâđ
0
its not necessary but if you want to make it more understandable you can...
- 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
- 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.
- 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.
- 2
no. it is just nice/good practice to make your code readable