logoalt Hacker News

ZiiSyesterday at 9:40 AM3 repliesview on HN

You are also not required to indent code (in most languages); please do if you want me to read it though.


Replies

dashzebrayesterday at 10:03 AM

You can also indent with spaces and tabs at the same time, who's judging?

show 2 replies
vbezhenaryesterday at 10:14 AM

Closing optional HTML tags just adds more ambiguity. How many HTMLParagraphElements here, what do you think?

    <p>
      text1
      <p>
        text2
      </p>
    </p>
show 4 replies
carlosjobimyesterday at 3:55 PM

HTML is more content than programming logic, so it shouldn't be indented.