Jump to content

Why write with spaces?


RivkaS

Recommended Posts

I saw in orderly codes that they are written in a manner like ..>... ... >... .... >...>..and so on. Why is this done and what are the rules for it?

Link to comment
Share on other sites

There are no "rules" for indentation, however it helps make code more readable and speeds up development of large files. Generally child tags would be indented, e.g.

<div>	<p>Text</p></div>

And if content is longer than one line then it is block indented, e.g.

<div>	<p>		.......................................................................		.......................................................................		.......................................................................	</p></div>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...