I think this is a simple question, but can't seem to find the answer.
I have used this code and it works fine:
<?php echo $_product->getAttributeText('my_attribute'); ?>
the only thing is, it is just showing the attribute value not the title. How can I add the attribute title to this code/