> For the complete documentation index, see [llms.txt](https://gitbook.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gitbook.com/docs/documentation/ja-gitbook-documentation/creating-content/content-structure/page/tags.md).

# タグ

タグを使って関連するコンテンツをグループ化したり、リリース状態を示したり、古くなったコンテンツを示したり、あるいは読者がドキュメントをざっと確認しやすくなるような他の方法で活用できます。

{% hint style="info" %}
**注：** タグは現在ベータ版です。検索機能やカラー対応を含む、さらに多くの機能の追加を検討しています。タグに追加してほしい特定の機能がある場合は、ぜひ [GitHubコミュニティでお知らせください](https://github.com/GitbookIO/community)!
{% endhint %}

## ページにタグを付ける

ページを開き、次に **ページオプション** を開きます。これはページタイトルにカーソルを合わせると表示されます。そこに 1 つ以上のタグを追加してください。タグはドラッグして、ページ上で表示される順序を変更できます。

### ページ上のタグを表示または非表示にする

既定では、タグはページの上部に表示されます。関連するメタデータを保持したままページのタグを非表示にするには、次の操作を行います。

* 開く **ページオプション**
* オフにする **ページにタグを表示** タグをメタデータのみにする

### 目次にタグを表示する

各ページについて、目次に表示するタグを 1 つ選べます。 [目次](https://gitbook.com/docs/creating-content/content-structure/page#table-of-contents) — このページで確認できるように。表示するタグを選ぶには、次の操作を行います。

* 開く **ページオプション**
* の下で **タグ**、 **目次に表示** ドロップダウンでタグを選択します。

## 更新ブロックにタグを付ける

それぞれの [更新ブロック](/docs/documentation/ja-gitbook-documentation/creating-content/blocks/updates.md) にも独自のタグを付けることができます。

更新ブロックにタグを追加するには、更新に移動して **タグを追加** を日付の下でクリックします。次にタグピッカーを使って、タグの追加、削除、並べ替えができます。

## ライブラリでタグを管理する

スペースのタグを表示、作成、管理するには、 **ライブラリ** から [目次](/docs/documentation/ja-gitbook-documentation/creating-content/content-structure/page.md#table-of-contents) を選択し、 **タグ**.

各タグには次が含まれます。

* 1つ目は **ラベル** — 読者に表示されるもの
* 1つ目は **slug** — 安定した識別子
* 任意の **icon** または **絵文字**

## Markdown のタグ

Git Sync を使用している場合、タグはページの frontmatter に表示されます。

```yaml
---
description: "タグはページや更新ブロックに追加できる再利用可能なラベルです。このページでは、タグの作成、追加、管理の方法を説明します"
tags:
  - news
  - experiment
  - tag: beta
    primary: true
  - pro
---
```

標準タグには文字列を使用します。

使うもの `primary: true` 1 つのタグでページのメインタグにします。GitBook はそのタグを目次に表示できます。

GitBook はリスト内のタグの順序を保持します。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://gitbook.com/docs/documentation/ja-gitbook-documentation/creating-content/content-structure/page/tags.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
