CSS Property:
text-decoration-line:

Note: The text-decoration-line property is not supported in Internet Explorer/Edge.

Result:
Hello world!
CSS Code:
#myDIV {
text-decoration-line: underline;
}
Click the property values above to see the result
W3Schools.com - Play it