\documentclass{article}
\usepackage{xr-hyper}
\usepackage{hyperref}
\externaldocument{label}
\begin{document}
See \nameref{test} in \texttt{label.html}.
\end{document}
