+ 1

why do I have to start a new line of code each time ?

cause I noticed if I don't it works like normal. for e.g html></html><head><title>Attributes</title></head><body></body><p align="center">This is a text <br /><hr width="50%" align="center" /><p align="center"> This is also a text.</p></body></html> this code works as one line and does it job creating this. This is a text This is also a text. with the 50% line in the middle

21st Jun 2016, 6:08 PM
Nick Weir
Nick Weir - avatar
8 Answers
+ 2
You can have it all on a single line, but it is better to have it organized on separate lines!
21st Jun 2016, 6:28 PM
Latavious
+ 2
It's for readability. Easier to maintain and edit.
21st Jun 2016, 7:36 PM
ZinC
ZinC - avatar
+ 2
proper arrangement so as it can be easy for trouble shooting
25th Jun 2016, 8:21 AM
materu
materu - avatar
+ 2
one should take more exercise to use it effectively. what we have seen is introduction.
26th Jun 2016, 12:17 AM
Gezahegn Hailemichael workenh
Gezahegn Hailemichael workenh - avatar
+ 1
this code doesn't work at all you already closed the body tag then p hr then you closed again body tag and closed again html. I can write a whole website in one single line. but code will difficult to read that's why we arrange the code.
24th Jun 2016, 8:18 PM
Harsh Realm
Harsh Realm - avatar
+ 1
for convenience
27th Jun 2016, 7:54 PM
Ñítßñ ÅgrĂ€wĂ€l
Ñítßñ ÅgrĂ€wĂ€l - avatar
0
its for you to be able to read it and make achang on it if you like
22nd Jun 2016, 12:34 AM
Hoda Salah
Hoda Salah - avatar
0
harsh realm it was posted like that for a reason
24th Jun 2016, 8:39 PM
Nick Weir
Nick Weir - avatar