Selenium get_attribute
Each HTML tag may have different attributes. You can see list of attributes of each tag from http://www.w3schools.com/tags/default.asp then go to each tag. Moreover, you can define custom attribute for any tags e.g. <a custom-att="my customer value">Test</a>
.