> For the complete documentation index, see [llms.txt](https://shhn0509.gitbook.io/html-and-css/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://shhn0509.gitbook.io/html-and-css/stylesheet/accessibility/less-than-nav-greater-than-hidden.md).

# \<nav> 요소와 hidden

`<nav>` 요소가 화면에서 숨겨지고 감춰지는 UI를 만든다고 할 때, `<nav>` 요소가 화면에 감춰지는 상태 일때 `hidden` 속성을 사용해야 한다.&#x20;

왜냐하면 화면에서 보이지 않을 때에도 `tab` 포커스가 `<nav>`의 목록을 탐색하기 때문이다. tab키를 사용해서 UI를 탐색하는 사용자를 위해서 `<nav>`요소가 UI에 그려지지 않을 때 사용자가 의미없는 탐색 하는 것을 방지 하기 위해 `hidden` 속성을 사용해야 한다.&#x20;

![](/files/-MV-uJsoXnXZXYvSeb7S)

![](/files/-MV-uEakqBe06gWnfRw7)


---

# 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:

```
GET https://shhn0509.gitbook.io/html-and-css/stylesheet/accessibility/less-than-nav-greater-than-hidden.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
