in .tmTheme files the scope key defines how a element is highlighted:
name HTML: Attribute
Scopes are from tmLanguage files which are different for each syntax. You can find a list of scope naming conventions at http://manual.macromates.com/en/language_grammars