I'm trying to get a reference with the name A.1 instead off ?? as shown in the example. I noticed that removing the package caption change the reference to A, so the problem still persist. Anyway I need the package caption because I use it to change the font size of captions.
\documentclass[11pt]{report}
\usepackage[utf8]{inputenc}
\usepackage[italian]{babel}
\usepackage[hidelinks,colorlinks=true,linkcolor=blue,citecolor=blue]{hyperref}
\usepackage{caption,float}
\begin{document}
\appendix
\chapter{Chapter Name}
\begin{table}[H]
\label{ops}
\centering
\begin{tabular}{l|l}
\hline Hey & Hi
\end{tabular}
\caption{Proprietà}
\end{table}
There is \ref{ops}
\end{document}
Output:
Hope somebody can give me an advice. Thank you in advance! :)

\labelgoes after\caption. (it is\captionthat provides the number, not thetableenv) – daleif Dec 14 '22 at 15:49Package caption Warning: \label without proper reference on input line 12– daleif Dec 14 '22 at 15:51hyperrefoptionhidelinksis clobbered by the subsequently specified optionscolorlinks=true,linkcolor=blue,citecolor=blue. – Mico Dec 14 '22 at 15:59