55

Why is it that italic and bold formatting is available while underline is not?

I guess it is voluntary, I'm just wondering why that would be the case.

8
  • 22
    I've never missed the ability to underline stuff in two years.
    – Pekka
    Commented Dec 23, 2011 at 21:13
  • 39
    Underlining has (still) connotations of a clickable hyperlink.
    – JJJ
    Commented Dec 23, 2011 at 21:20
  • 2
    See meta.stackexchange.com/a/24142 for previous discussion on this
    – waiwai933
    Commented Dec 23, 2011 at 22:39
  • 8
    In the three years that I have been on Stack Overflow, I never thought about using an underline. I have thought about using strikeout though. Commented Dec 24, 2011 at 6:50
  • 2
    For those who might wonder about tag removal: this is a support question asking "Why", so a status tag does not really fit. Commented May 12, 2014 at 9:14
  • 3
    Here's a post on User Experience about whether there is ever a need for underlining text when it's not a link - ux.stackexchange.com/questions/18086/…
    – JonW
    Commented May 12, 2014 at 9:24
  • 6
    "I can't think of a legitimate use for this, therefore no one else has a legitimate use for it, either." — SE logic
    – endolith
    Commented Jul 11, 2018 at 19:51
  • works <u>fine</u>
    – funder7
    Commented Aug 4, 2022 at 13:13

5 Answers 5

57

Underlining as a typographic means of emphasis is a relic of typewriters and handwriting. I'm not saying these two are dead (at least not both of them), but underlining is far inferior to bolding (for emphasizing and having it stand out from the rest of the text) and italicizing (for emphasizing but leaving the text's gray value intact, thus not standing out).

Using underlining for emphasis is only for when you have no other way. And we certainly do.

In addition, Juhana is right; on the web, underlining means "clickable".

7
  • 15
    Because bolding and putting everything in italics makes everything look better.
    – casperOne Mod
    Commented Dec 24, 2011 at 16:38
  • 5
    On a side note: our very own UX.SE has an interesting question on allowing underline.
    – Jeroen
    Commented Oct 22, 2012 at 11:52
  • 7
    Bold is better than u̲n̲d̲e̲r̲l̲i̲n̲e̲. Commented Jul 4, 2017 at 23:14
  • 1
    For me hyperlinks on a web were always distinguishable by color difference and not by underlining. On the other hand, I was never used to using bold for emphasis, because for me its purpose is for headers and it attracts too much attention compared to u̲n̲d̲e̲r̲l̲i̲n̲i̲n̲g̲. U̲n̲d̲e̲r̲l̲i̲n̲i̲n̲g̲ is something in between bold and italic.
    – EvgenKo423
    Commented Jul 28, 2019 at 9:02
  • Underlines damage legibility of letters with descenders (çgjpqy). @casperOne, are you one of those vandals who underline whole paragraphs of a book? Commented Nov 25, 2019 at 19:03
  • @EvgenKo423, to my eye, your underlines here stand out much more than the alternatives. Commented Nov 25, 2019 at 19:03
  • I use italics for emphasis, and bold for important things. Underlines have no added semantic value in the context of Markdown on Stack Exchange. Commented Apr 12, 2020 at 20:46
39

You can u̲n̲d̲e̲r̲l̲i̲n̲e̲ t̲e̲x̲t̲ by using the unicode combining character U+0332:

u&#x332;n&#x332;d&#x332;e&#x332;r&#x332;l&#x332;i&#x332;n&#x332;e&#x332;d&#x332;

Use this bookmarklet to underline the selected text in the active input control:

javascript:(function(){var el=document.activeElement,$el=$(el),start=el.selectionStart,end=el.selectionEnd,val=$el.val(),text=val.substring(start,end).replace(/\S/g,"$&\u0332");$el.val(val.substring(0,start)+text+val.substring(end));el.selectionStart=start;el.selectionEnd=start+text.length})();void 0;
5
  • 11
    Looks like this on Chrome 16, Ubuntu 11.10. Yuck!
    – hammar
    Commented Feb 3, 2012 at 2:35
  • 3
    Well, ya.. Not great, but perhaps better than nothing. On WP7 the line is solid at least, but offset by half a character to the right. I'd post a screenshot, but WP7 still lacks that capability.
    – gilly3
    Commented Feb 3, 2012 at 4:50
  • 6
    For spacing, use &nbsp; instead of normal spaces. Trying to combine normal spaces with &#x332; will give you odd and ugly results.
    – Pacerier
    Commented Nov 6, 2015 at 6:33
  • 7
    Sometimes nothing is better than something. Commented Jun 9, 2016 at 18:33
  • Removed implicit jquery dependency from bookmarklet javascript:(function() { var el = document.activeElement; var start = el.selectionStart; var end = el.selectionEnd; var val = el.value; var text = val.substring(start, end).replace(/\S/g, "$&\u0332"); el.value = val.substring(0, start) + text + val.substring(end); el.selectionStart = start; el.selectionEnd = start + text.length; })();
    – Madacol
    Commented Mar 21 at 14:10
34

On the web, an underline denotes a clickable link.

We do not and should not encourage contributors to create confusion by underlining regular text.

2
  • 12
    Very few of the links on SO are underlined. I'm not sure this would create legitimate confusion.
    – Charles
    Commented Dec 24, 2011 at 3:25
  • 7
    @Charles: That's a design choice - one that many might disagree with but that's beside the point. The underline indicates a hyperlink, period; it doesn't matter whether or not the real hyperlinks are underlined, underlined text on the site is going to signal to readers that there is a hyperlink when there actually isn't.
    – Aarobot
    Commented Dec 24, 2011 at 18:24
-6

t͟e͟s͟t͟i͟n͟g͟ ͟i͟f͟ ͟t͟o͟o͟l͟s͟ ͟w͟o͟r͟k͟s͟

Nice!

So this is the tool: https://yaytext.com/underline/

Just enter the text there, copy the underlined text, and paste it in stackoverflow:

screenshot of the tool

If the previous tool is removed in the future, what I did to found it is searching on Google:

underline characters online

1
  • 3
    While it could work, the accessibility might get impacted. This is how it looked on Windows 11, Chrome 127, Screen scale 200%, Zoom scale 100%. Commented Aug 23 at 6:40
-12

First, some background, to get us all on the same page.

  • Italicizing is one way in which to emphasize text in a passage. Italics are the most subtle form of typographic emphasis in common use, and are really only noticeable while reading the passage containing them.

  • Bolding is another way in which one can emphasize text. This is a very significant jump in emphasis, easily drawing the eye, even when one is not currently reading the passage utilizing the bold text.

  • Underlining is simply a third way in which one can emphasize text. The strength of its emphasis lies between that of italics and bold text, slightly drawing the eye to the text but not demanding attention the way bold text does. In some people's eyes this could provide for a more nuanced gradation of emphasis than is available with the two (arguably three when you combine them) available forms of emphasis.

Now, as to why underlining is disallowed:

  • There is fairly coherent argument that the use of underlines as text decorators for prose would lead to confusion, since people associate underlined text with web links. Of course, this argument has lost some of its strength since many websites have moved away from using underlines to identify links and toward the use of bold text of a different color than typical prose instead. Perhaps in a decade it will be bold text that is deprecated because of confusion.

  • Additionally, there is a fairly widely held (but not universal) subjective belief that underlining is unsightly and detracts from the readability of a passage. Since this is subjective, one who believes that underlined text is unsightly cannot be convinced to find it otherwise any more than someone who dislikes Leonardo da Vinci's art could be convinced to reconsider. You like what you like, and you dislike what you dislike.

  • There is also a common argument that the underlining of text damages the descenders of certain letters and punctuation (for example, these characters: qypgj;, and in some fonts f). This particular argument falls short of being persuasive, since such observances depend entirely upon the font, rendering engine, and settings in use (hence the existence of the CSS property text-underline-offset), and is largely untrue for modern fonts especially on pages with well considered CSS design. For instance: Some judge that underlined quotes, particularly those presenting with many descenders are overly obscured by underlines; but as you can see this is largely untrue.

  • The fourth and most meaningful reason for underlining to be unavailable is this. There has evolved a cultural more (môr' ā) that predisposes certain people to place emotional weight to the argument that this should be the case. This is so much the case that any possible argument to the contrary is often simply dismissed without consideration or analysis. Those who have integrated this more with their value system have a natural revulsion to accepting underlines in much the same way that Western peoples have a revulsion to dining on members of the biological class insecta while happily dining on other members of the phylum arthropoda.

So, in the end, the reason why we cannot underline, while we can use bold and italics, is that putting this rule in place was not a strictly rational decision, but rather, a cultural and emotional decision, born out of preference and recent tradition and justified by subjective and--in some cases--arguably spurious claims. Further, any argument to the contrary is met with an us-against-them tribalism that only goes to demonstrate the emotional grounding of the position.

TLDR

A larger proportion of the people in place to make such decisions dislike underlines, some of them passionately. In many cases they take any request to allow underlines as an affront rather than as a collaborative request to work together to improve everyone's collective experience here in the Stack community. Their preference, in this case, is the rule, and it's their collection of websites, so we have to play by their rules.

Edit (2024-09-02) - Perhaps a more collaborative (and accurate) way for me to state my final TLDR point is this. The Stack community is about finding best solutions by developing community consensus (which is why the solutions with more community support bubble to the top). The current consensus leans towards keeping underlines out of the repertoire, so based on expressed community preference, that is how things will remain.

5
  • 10
    It doesn't seem like an emotional decision to me. If they allow underlines for non-links, then they would need to find another way to make links "visually evident without color vision" (which can't be bolding, since that's also used for regular text). Also, this has less to do with SE than you think; what they're really doing is following the Markdown or CommonMark spec, which doesn't have underline formatting options.
    – Laurel
    Commented Aug 30 at 16:52
  • You are correct to say that CommonMark does not provide for the use of underlines; however, it also does not forbid them (spec.commonmark.org/dingus/…). Part of the reason for this is that the markdown spec deals with semantic meaning and leaves the choice of actual presentation style to the user (the website implementer) when they decide what CSS to bind to each semantic meaning. Commented Aug 31 at 3:52
  • Additionally, if you look closely at the Stack websites (and the rest of the modern web), you'll see that they often avoid using underlines for links either (look at the navigation menu to the left, the usernames that tag each of our comments, and the "Hot Network Questions" in the column to the right). So they are already finding another way to style their links that does not include making them confusable for underlined prose. Commented Aug 31 at 4:00
  • How did you generate your answer? Looks like some tool as the links are not even links. GenAI answers are not allowed here Commented Sep 18 at 9:03
  • Right, because I'd use GenAI to make an unpopular point, just so that I could most efficiently lose reputation? It couldn't possibly be that a human could think up a way to use links (the one piece of functionality still allowed to underline here) to illustrate their point, could it? It's bad enough that people claiming underlines have a valid use get shut down without having their points at least acknowledged. Are we now seriously going to have people claiming AI generation to have arguments removed when they can't refute them? I'm taking a beating in reputation just so my point is seen. Commented Sep 19 at 11:45

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .