Hacker News new | ask | show | jobs
by aroberge 4667 days ago
The nightmare of divs makes it hard to find the end div unless someone is disciplined enough to indent the code consistently OR if comments are inserted at the end of divs as in

    <div class="header">
        ...
    </div>  <!-- header-->
Using semantic tags makes it much easier to see the structure.
1 comments

I indent religiously, and I comment, but I use a lot of static site generator-type software and I've yet to find one that doesn't completely ruin the indentation in the output, even with the various kinds of HTML-prettify plugins.