Question: Should I avoid using <br/>
to break lines in favor of wrapping content in <p></p>
? When is it OK to use <br/>
(if ever)?
They both work fine in what I would call typical desktop browsers, but does one or the other work better with accessibility features and mobile devices?
What is the current recommended best practice? (It seems to be a moving target.)
For example, when doing stuff like this:
Using <br/>
to separate label from input
<label for="txtUsername">Username</label><br/>
<input type="text" id="txtUsername" autocomplete="off" maxlength="50" spellcheck="false"/>
Using <p></p>
to separate label from input
<p><label for="txtUsername">Username</label></p>
<p><input type="text" id="txtUsername" autocomplete="off" maxlength="50" spellcheck="false"/></p>
I've searched around a bit and there doesn't seem to be a 100% consensus on this, thought I would hit up the wonderful SO community.. Thanks!
` tags; there's rarely a need for them. I probably wouldn't use `
` tags for forms, either, though.
– Dave Newton Dec 05 '14 at 17:42