3 Reasons to Never Use Double Break Tags in HTML

  • Mixes presentation with content. (not semantic)
  • Can’t be over-ridden with CSS. (not easily and reliably anyway)
  • No control over amount of space added.

So how should you use break tags?

Break tags should only be used inside a block level element such as a paragraph or header in order to break a line of text. Never use them to add space between elements. Use CSS styles instead.

Advertisements
Leave a comment

Leave a Comment

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s