\documentclass{elsarticle}

\usepackage{hyperref}
\hypersetup{colorlinks=true}

\begin{document}
	\begin{center}
		In the name of God, the most gracious, the most merciful
	\end{center}

	\section{Section 1}
	\label{sec1}
	
	Output of \verb|\ref{sec1}|: \ref{sec1}.

	Output of \verb|\autoref{sec1}|: \autoref{sec1}.

	\subsection{Subsection 1.1}
	\label{subsec1}
	
	Output of \verb|\ref{subsec1}|: \ref{subsec1}.
	
	Output of \verb|\autoref{subsec1}|: \autoref{subsec1}.

	\appendix
	\section{Appendix 1}
	\label{appdx1}
	
	Output of \verb|\ref{appdx1}|: \ref{appdx1}.
	
	Output of \verb|\autoref{appdx1}|: \autoref{appdx1}.
\end{document}