Ben Ward

Do line breaks really exist?

.

I’ve been working hard for Uni these last few weeks, but before I run up north for a few days, something has been playing on my mind for a while.

Jo and I had a conversation not long ago about semantic mark-up. Now, having encouraged Jo into all this semantic standards stuff, she’s become quite a purist.

As much as <br> is always used presentationally, I’d always thought, in the back of my mind, that it had a valid use in the construction of paragraphs as well. Jo gave me ‘a look’ at this point of the conversation and pointed out that there was no such thing as a ‘half paragraph’, so what was it?

Following my thought process through, I realised that this concept of using line breaks comes from writing documents in Microsoft Word (press Ctrl+Enter). Since citing Microsoft Word is not the most rock-solid of semantic defences I now agree with Jo.

I do remain curious, though. Can anyone explain why line breaks exist at all? (Especially in Word). Were they just a presentational hack in early word processors?

Of course Jo could be wrong. However, that happens rather rarely in our relationship, and ‘Half Paragraphs’ do seem somewhat silly when you think about it.

Comments

Previously, I hosted responses and commentary from readers directly on this site, but have decided not to any more. All previous comments and pingbacks are included here, but to post further responses, please refer me to a post on your own blog or other network. See instructions and recommendations of ways to do this.

  1. Actually, there is such a thing as a part-paragraph. If you are writing a conversation, you start a new line, but not a new paragraph, when a new person speaks. I’d have thought this would be a legitimate use of a <br> tag.

    There’s also an argument that it can be used for poetry

    Formatting of text predates the wordprocessor.

  2. I’ve used it for line breaks in poetry (about the only real semantic use, although Simon Willison’s example of the address part of a letter does make sense too).

    In most other cases it should be replaced by a new paragraph tag – with the top margin set to zero using a CSS class if it needs to ‘look’ like the default browser rendering of a break tag.

    When used for poetry, though, I always wondered if the break tag should be preceded by a space.

  3. Ben

    Hmm, interesting and very valid ideas. Not being much of a poet, I’d completely overlooked that!

    Before hCard, I’d probably have agreed with it for addresses too, but once that microformat is complete it might be more appropriate (if less intuitive) to describe addresses with multiple elements and hCard classnames.

    Another potential use could be representing guitar tablature (although a <pre> block strikes me as better, perhaps).

    Thanks for the comments, it’s all quite thought provoking.

You can file issues or provide corrections: View Source on Github. Contributor credits.