Search code examples
htmlunderline

HTML character code to underline next character


Like:

abcdef 
 _

What HTML character code I need to insert before b to make b underlined?

I need this inside a html attribute (value of a input field), so html tags like <u> are not acceptable


example:

<input type="submit" value="UnderlineMeifUknowHow" accesskey="n" />

I want the first "n" from UnderlineMeifUknowHow to be underlined


Solution

  • As I tould you in the question-comments, there are special characters and I finally found it!

    Poorly it depends on the font you're using to move the underline directly under the letter. It's also known as a "combining character" and can be found under U+0332 in the unicode table.