Skip to content

Best HTML Practices

Gabrielle Wee edited this page Oct 10, 2015 · 1 revision

This will be added to as needed by Gabrielle.

<br/>

  • This tag should only be used when breaking apart text that is part of one cohesive sentence or paragraph - in other words, only for formatting.
  • If you need a new paragraph, use <p></p> instead.
  • Should always be self-closing - <br/> vs. <br>

Do:

<p>This sentence needs to be broken up <br/> for display purposes only.</p>
<p>This is a separate paragraph.</p>

Don't:

<p>This sentence needs to be broken up for display purposes only.
<br>This is a separate paragraph.</p>
Clone this wiki locally