> 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).

# タグ

タグを使用して、関連するコンテンツをグループ化したり、リリース状態を伝えたり、古いコンテンツを示したり、読者がドキュメントを素早く把握するのに役立つその他の用途に活用できます。

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

1. ページを開きます。
2. ページタイトルにカーソルを合わせて、開く **ページオプション**.
3. 1つ以上のタグを追加します。

タグをドラッグして、ページ上で表示される順序を変更します。

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

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

1. 開く **ページオプション**.
2. オフにする **ページにタグを表示**.

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

各ページごとに、目次に表示するタグを1つ選べます。表示するタグを選ぶには:

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

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

各更新ブロックには独自のタグを設定できます。

1. 更新ブロックを開きます。
2. 次をクリックします **タグを追加** 日付の下に。
3. タグピッカーを使用して、タグの追加、削除、並べ替えを行います。

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

セクションのタグを表示、作成、管理するには:

1. 次を開きます **ライブラリ** 目次から。
2. 次をクリックします **タグ**.

各タグには次の要素があります:

* ラベル — 読者に表示される内容
* スラッグ — 安定した識別子
* オプションのアイコンまたは絵文字

#### Markdown のタグ

Git Sync を使用している場合、タグはページのフロントマターに表示されます:

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

標準のタグには文字列を使用します。 `primary: true` 1つのタグに対してこれを設定すると、そのタグがページの主要なタグになります。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.
