CSS Property:
text-decoration-line:

Result:
Hello world!
CSS Code:

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