A tag is a keyword or marker used to associate information with a term to facilitate its retrieval and organization. In digital marketing, it also refers to a snippet of code embedded in a web page, enabling the display of external content or the tracking of visitors, such as for audience measurement or retargeting. These varied uses make tags an essential tool for managing and analyzing online data.