4 ms·
What is "knowing what you're doing?" I'm honestly curious, because I handwrote most of the HTML on my website and I don't know how to have it cleaner than somet
by lfowles 12y ago
What is "knowing what you're doing?" I'm honestly curious, because I handwrote most of the HTML on my website and I don't know how to have it cleaner than something like this:
</div> <!-- footer -->
</footer>
</div> <!-- row -->
</div> <!-- container -->
(If you actually look at the website, it will be pretty obvious that I'm no skilled web dev)
- krapp 12y agoIndenting all of the tags would help, but that's probably about it. <div> <footer> </footer> </div>
- TylerE 12y agoIn theory, maybe. In practice, where the code is coming from 3 or 4 different levels of templating? Bets are off.
- krapp 12y agoI use Twig for templating a lot, and I have to admit that while I indent per template, i don't even bother keeping track between parent and child. But then, Twig has its own weird issues sometimes with adding whitespace so I've given up caring how templated html works altogether in that case.