\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\begin{document}
	
	\section{title}\label{foo}
	
	\ref{foo}
	
\end{document}