Is there any package to direct to declaration?


For example, I have an http file and a css file as below:


<p class="style-sample">Sample paragraph</p>


.style-sample {

Say that I am in index.html and my cursor is pointing to style-sample. Is the any package that can direct the cursor to the class declaration in styles.css? In a broader sense, a go-to-declaration feature for class, function, variable declaration, etc would be golden. I depended on this so much when I develop in Java.