Should I use whitespace and indentation for </br>

When using the open tag line break </br> should I indent them in the next line? In doing so keeping clean code, or is not necessary?

looking at the docs:

its says we need to use a <br> tag for HTML, or a <br /> for XHTML, so not sure how you get to </br>, there is no closing tag for this element. (its self closing)

i would put the break element on the same line, this will keep it readable as long as the rest of your code is properly indented.


This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.