To underline a Word document:
Click the format of the menu bar in the Word document, and then click Font.
Select the desired line type in the underline inside the font.
Tap the space bar on the keyboard in the Word document and type it out.
The final effect diagram is as follows: