CellTags
Details
- Cell tags are typically used to allow searching for cells.
- The tags are usually strings.
- Cell tags are displayed when ShowCellTags->True is set.
Examples
Basic Examples (2)
Create a cell with a cell tag:
CellPrint[TextCell["abcd", "Text", CellTags -> "tag"]]Find the tagged cell and read its cell expression:
NotebookLocate["tag"];NotebookRead[EvaluationNotebook[]]Make cell tags visible with ShowCellTags->True:
CreateDocument[{TextCell["abc", "Text", CellTags -> "tag1"], TextCell["def", "Text", CellTags -> {"tag1", "tag2"}]}, ShowCellTags -> True];Related Guides
History
Introduced in 1996 (3.0)
Text
Wolfram Research (1996), CellTags, Wolfram Language function, https://reference.wolfram.com/language/ref/CellTags.html.
CMS
Wolfram Language. 1996. "CellTags." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/CellTags.html.
APA
Wolfram Language. (1996). CellTags. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/CellTags.html
BibTeX
@misc{reference.wolfram_2026_celltags, author="Wolfram Research", title="{CellTags}", year="1996", howpublished="\url{https://reference.wolfram.com/language/ref/CellTags.html}", note=[Accessed: 12-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_celltags, organization={Wolfram Research}, title={CellTags}, year={1996}, url={https://reference.wolfram.com/language/ref/CellTags.html}, note=[Accessed: 12-June-2026]}