Preface: You should really consider to use macros like \emph for emphasizing text. Underlining is from the typewriter-era and is not necessary anymore.
You have some options:
the macro \underline which is pretty inflexible
the package ulem (best to load with normalem option) and its macro \uline (supports linebreak)
Use \usepackage[normalem]{ulem} and then \uline{...}. It allows line breaks in the underlined text. Other forms of underlining (double, waves) or emphasis (crossed out, ...) are also supported. See the image in Url with fragments in bold for examples.
Best Answer
Preface: You should really consider to use macros like
\emph
for emphasizing text. Underlining is from the typewriter-era and is not necessary anymore.You have some options:
\underline
which is pretty inflexibleulem
(best to load withnormalem
option) and its macro\uline
(supports linebreak)soul
and its\ul