21

Is it common for designers to style a colon in the same way as the preceding label, even though the following text does not follow this style?

For instance, I have the habit of making the colon bold if the label is bold as well.

Bold: the colon is bold, as is "Bold", but the text following isn't.

But when italicizing, I often do not make the colon italic (for no apparent reason, simply a habit)

Italic: the colon isn't in italics, just like the text following.

However, I think it's best to adopt an identical approach for each case. Also, in webdesign this might be crucial to provide a semantically valid HTML structure. Would one write markup like so:

<p><span class="bold">Bold:</span> the colon is bold, as is "Bold", but the text following isn't.</p>

Or like so?

<p><span class="bold">Bold</span>: the colon is not bold and neither is the text following it, but "Bold" is.</p>
1

2 Answers 2

2

Do you want to use the first part as a title or just emphasize (a part of) it? Colons can be used as follows:

Separating one sentence:

<p>
    <strong class="label">When the first part is bold</strong>: 
    the colon is styled normally.
</p>

Separating two sentences:

<p>
    <strong class="label">This colon separates two sentences</strong>:
    Still, the colon is styled normally.
</p>

But if the colon is part of a title there is probably already some kind of separation like a line break or indentation, no need for a colon. But if it is needed (really?), it would be more logical when it has the same style as the title. Talking about semantics, a definition list would be a better choice then.

Take this title and code for example

<dl>
    <dt><strong>The whole label is bold:</strong></dt>
    <dd>your description</dd>
</dl>
3
  • I edited my answer drastically because I thought it was unclear.
    – jazZRo
    Commented Jan 7, 2015 at 9:10
  • This is an over-complicated answer. All you've said, summarized, is: "The colon should not be bolded with the preceding word(s), and sometimes you might not need a colon." You haven't addressed the issue of italics.
    – Phrogz
    Commented Jul 22 at 15:41
  • @Phrogz This was a while back but I think I wanted to make clear where the decision depends on and left out italic because the answer is the same as for bold.
    – jazZRo
    Commented Jul 23 at 13:28
8

In design school I learned that one should not bold the colon as it is not what one is trying to bring emphasis to.

Regarding italics, it seems the rule is determined by which style guide one adheres to. I would generally go with italicizing a colon after and italicized word. More on that: http://the-word-blog.com/2009/04/28/formatting-ink-italics-punctuation/

One style guide avoids the issue by ruling to not use italics in this situation.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.