What is the proper code indentation convention in HTML pages?

What is the proper code indentation convention in HTML pages?


I'm finding it confusing to read code with both <% type tags with zoho script code. For instance how would you tag and indent a block of code for each, which fills in cells of a table? What if you have nested loops?

  1. <% for each i in IForm
  2. {
  3.       %> <%for each j in JForm
  4.       {
  5.             %> <%=j.data %><%
  6.       }}%>
So maybe its not so so confusing with this simple dummy text, but then the editor automatically does some corrections of its own and spaces things like crazy, so what rule is it following?