+ 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
8 Réponses
+ 2
You can have it all on a single line, but it is better to have it organized on separate lines!
+ 2
It's for readability. Easier to maintain and edit.
+ 2
proper arrangement so as it can be easy for trouble shooting
+ 2
one should take more exercise to use it effectively. what we have seen is introduction.
+ 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.
+ 1
for convenience
0
its for you to be able to read it and make achang on it if you like
0
harsh realm it was posted like that for a reason