Html readability

What is the best way to make html more readable. Do you have an empty line after each element?

1 Like

I would suggest adding <div> with an id or class saying what that section is, ex: <div id = "intro"> or something like that. I would also suggest putting an extra blank line in-between parts of the code like in between the sections of code for the title and author and the intro. ALSO, COMMENT YOUR CODE.

Would you mind providing a visual example? Also don’t you divide using semantic elements such as header etc?

Put blank lines, ids and comments like this image


That’s great. Thank you.

1 Like