Indentation in HTML

So, I’m just starting to learn HTML, and I was wondering about indentation. Are all the levels of an indented element also supposed to be indented? If so, what does it mean if it’s not? if not, won’t that affect readability?

https://www.codecademy.com/paths/front-end-engineer-career-path/tracks/fecp-22-fundamentals-of-html/modules/wdcp-22-learn-html-elements/lessons/intro-to-html/exercises/structure-html

All indentation in HTML is for readability. Do whatever you want, as long as you can read it.

1 Like