In Trilium, attributes are key-value pairs assigned to notes, providing additional metadata or functionality. There are two primary types of attributes:
1.**Labels**: Simple key-value text records
2.**Relations**: Named links to other notes
These attributes play a crucial role in organizing, categorising, and enhancing the functionality of notes.
***Scripts and Plugins**: Used to tag notes with special metadata, such as the "weight" attribute in the<a class="reference-link" href="Advanced%20Showcases/Weight%20Tracker.md">Weight Tracker</a>.
*`disableVersioning`: Disables automatic versioning, ideal for large, unimportant notes like script libraries
*`versioningLimit`: Used to limit the number of revisions for a single note
*`calendarRoot`: Marks the note as the root for [day notes](Advanced%20Showcases/Day%20Notes.md). Only one note should carry this label
*`archived`: Hides notes from default search results and dialogs
*`excludeFromExport`: Excludes notes and their subtrees from export operations
*`run`: Specifies events to trigger scripts (e.g., `frontendStartup`, `hourly`)
*`runAtHour`: Defines specific hours for scripts to run, used with `#run=hourly`
*`disableInclusion`: Prevents a script from being included in parent script executions
*`sorted`: Automatically sorts child notes alphabetically by title
*`top`: Keeps the note at the top of its parent's list, useful with `sorted`
*`hidePromotedAttributes`: Hides certain attributes in the note's display
*`readOnly`: Sets the note to read-only mode, applicable to text and code notes
*`autoReadOnlyDisabled`: Disables automatic read-only mode for large notes
*`appCss`: Marks CSS notes used to modify Trilium’s appearance
*`appTheme`: Marks full CSS themes available in Trilium's options
*`cssClass`: Adds a CSS class to the note's representation in the tree
*`iconClass`: Adds a CSS class to the note's icon, useful for distinguishing notes visually. See<a class="reference-link" href="../Basic%20Concepts%20and%20Features/Notes/Note%20Icons.md">Note Icons</a>.
*`pageSize`: Specifies the number of items per page in note listings
*`widget`: Marks a note as a custom widget, added to Trilium's component tree
*`workspace`**and related attributes**: See<a class="reference-link" href="../Basic%20Concepts%20and%20Features/Navigation/Workspace.md">Workspace</a>for more details
*`searchHome`: Specifies the parent for new search notes
*`inbox`: Designates a default location for new notes created via the sidebar
*`sqlConsoleHome`: Default location for SQL console notes
Special labels create "label/attribute" definitions, enhancing the organization and management of attributes. For more details, see<a class="reference-link" href="Attributes/Promoted%20Attributes.md">Promoted Attributes</a>.
Trilium supports attribute inheritance, allowing child notes to inherit attributes from their parents. For more information, see<a class="reference-link" href="Attributes/Attribute%20Inheritance.md">Attribute Inheritance</a>.