is an option for selections that specifies a list of strings to be associated with a selection.


  • TaggingRules provides a way of storing additional information with a selection, for example, to be used by other programs in processing a notebook. It can be set to a list of one or more strings.
  • With the default setting TaggingRules->None, no additional information is associated with the selection.
  • Typically, structured metadata is broken up into pieces that can be identified using selector names in the form "selector"->data. The selector can then be individually queried using CurrentValue[obj,{TaggingRules,"selector"}].
  • Another typical method for storing highly structured data is to use subselectors inside of selectors. For example, "selector"->{"subselector1"->data,"subselector2"->data}. The subselectors can then be queried using CurrentValue[obj,{TaggingRules,"selector","subselectori"}]. Subselectors can have their own subselectors, to an arbitrary depth.
  • TaggingRules can be set at the cell, notebook, and global level.


open allclose all

Basic Examples  (2)

Apply TaggingRules at the cell level:

Use nested rules as TaggingRules:

Reference specific TaggingRules values using CurrentValue:

Reference nested values directly by using subselectors in CurrentValue:

Scope  (2)

Apply TaggingRules at the notebook level:

Apply TaggingRules at the global level:

Applications  (1)

TaggingRules can be used like a DynamicModule variable that spans cells:

Wolfram Research (1999), TaggingRules, Wolfram Language function, https://reference.wolfram.com/language/ref/TaggingRules.html.


Wolfram Research (1999), TaggingRules, Wolfram Language function, https://reference.wolfram.com/language/ref/TaggingRules.html.


@misc{reference.wolfram_2021_taggingrules, author="Wolfram Research", title="{TaggingRules}", year="1999", howpublished="\url{https://reference.wolfram.com/language/ref/TaggingRules.html}", note=[Accessed: 31-July-2021 ]}


@online{reference.wolfram_2021_taggingrules, organization={Wolfram Research}, title={TaggingRules}, year={1999}, url={https://reference.wolfram.com/language/ref/TaggingRules.html}, note=[Accessed: 31-July-2021 ]}


Wolfram Language. 1999. "TaggingRules." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/TaggingRules.html.


Wolfram Language. (1999). TaggingRules. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/TaggingRules.html