# create Inline Boxes

I would like to create two boxes next to each other horizontally, each containing text. I'd like the border to be black and the background white.

Here's my attempt at reproducing it

\documentclass{article}
\usepackage{tcolorbox}
\usepackage{amsmath,mathtools}

\begin{document}
\begin{center}
{\tcbox{Modals}=\tcbox{Helping verbs} }
\end{center}
$\fbox{\mbox{Modals}}=\fbox{\mbox{Helping verbs}}$

\end{document}


which produces

You are better to define your own command:

\documentclass{article}
\usepackage{tcolorbox}

\newtcbox{\mybox}{
colback=white,% background color
on line,% don't add line breaks
before upper=\vphantom{Ay},% ensure constant height
}

\begin{document}
$\mybox{Modals}=\mybox{Helping verbs}$

\end{document}