I found that if I don't place \label in a \begin{figure}...\end{figure} correctly, it will generate a ?? when I \autoref it.
Where is the appropriate position?
\begin{figure}
\label{}
\includegraphics{}
\caption{}
\end{figure}
or
\begin{figure}
\includegraphics{}
\label{}
\caption{}
\end{figure}
or
\begin{figure}
\includegraphics{}
\caption{}
\label{}
\end{figure}
\labelwith the most recently incremented counter variable -- here: thefigurecounter. Thefigurecounter gets incremented by the\captiondirective. Hence, the only possible correct answer in your list is #3. – Mico Feb 23 '21 at 07:26\caption{text\label{label}}. – Ulrike Fischer Feb 23 '21 at 07:48