Difference between ‘Get Element Attribute’ and ‘Get Text’ in getting the text value of a locator

Hello, everyone! I was just wondering if what’s the difference between the keywords Get Element Attribute and Get Text when getting the text value of a locator?

With Get Element Attribute, I can use innerHTML to get the text value.

Maybe I would just like to identify when the keywords are best to use.

Thanks in advanced for those who can share.

Best regards,