# Cell Tags

## Content

SpreadJS provides the ability to store data in a cell, column, row, or sheet. The [setTag](/spreadjs/api/v17/classes/GC.Spread.Sheets.Worksheet#setTag) method helps to create tags that can store any type of data and are not visible to the user.

You can remove tags with the [clear](/spreadjs/api/v17/classes/GC.Spread.Sheets.Worksheet#clear) method. Tags can be cut, copied, pasted, or moved.

If the tag type is a string, then the tag can be searched. Tags are supported with undo and redo. Basic tags are supported when importing or exporting to JSON files. Custom tags are not supported when importing or exporting to JSON files.

Adding tags can also cause the [CellChanged](/spreadjs/api/v17/classes/GC.Spread.Sheets.Events#CellChanged_EV), [ColumnChanged](/spreadjs/api/v17/classes/GC.Spread.Sheets.Events#ColumnChanged_EV), or [RowChanged](/spreadjs/api/v17/classes/GC.Spread.Sheets.Events#RowChanged_EV) event to occur.

The following code sample adds a tag to a cell.

```javascript
activeSheet.setTag(1,1,"test");
alert(activeSheet.getTag(1,1,GC.Spread.Sheets.SheetArea.viewport));
```