본문으로 건너뛰기
Skillpedia
웹사이트 및 UI (프런트엔드)75k · #2923

list-structure

하는 일

이 스킬은 HTML 목록의 직접 자식으로 목록 항목 요소만 들어 있는지 확인합니다. 보조 기술과 잘 맞는 목록을 원하는 웹 제작자를 위한 스킬입니다.

사용하는 경우

  • ✓페이지 목록의 HTML 마크업을 검토할 때.
  • ✓화면에서는 괜찮아 보이지만 내부 코드가 올바르지 않다고 의심될 때.
  • ✓템플릿이나 컴포넌트가 목록을 출력하고 구조가 맞는지 확인하고 싶을 때.

스킬 링크

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/list-structure/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/list-structure/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“내 사이트의 목록이 스크린 리더에 맞게 올바른 구조인지 확인해 주실 수 있나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트가 각 ul과 ol 요소를 살펴 li가 아닌 직접 자식을 찾고, 목록 구조가 유효해지도록 그것들을 옮기거나 감쌉니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Use correct list structure

Screen readers rely on a specific parent-child relationship for lists to correctly announce the number of items and the user's current position within the list.

Quick Reference

  • Unordered (<ul>) and ordered (<ol>) lists must only contain <li> elements
  • Do not put other elements like <div> or <p> directly inside a list
  • Ensure nested lists are also properly contained within an <li> element

Check

Check the structure of all lists to ensure only <li> elements are direct children of <ul> or <ol>.

Fix

Remove or move any non-li elements from within <ul> and <ol> tags.

Explain

Explain why assistive technology needs a consistent list structure to provide accurate navigation information.

Code Review

Review the rendered markup and interactive states that affect Use correct list structure. Flag exact elements, roles, labels, focus behavior, or keyboard interactions that violate the rule, and note how to verify the fix with browser accessibility tooling or assistive tech.


For full implementation details, code examples, and framework-specific guidance, see references/rule.md.

Rule page: https://frontendchecklist.io/rules/accessibility/list-structure

자주 묻는 질문

목록 안에 div가 직접 있으면 무엇이 문제인가요?

스크린 리더는 명확한 부모와 자식 관계에 의존하므로, 추가 요소가 항목 수와 위치를 혼란스럽게 할 수 있다고 스킬은 설명합니다.

목록을 중첩할 수 있나요?

네. 다만 중첩된 목록은 목록 항목 요소 안에 있어야 합니다.

이 수정이 목록의 모양을 바꾸나요?

스타일이 잘못된 구조에 의존하면 바뀔 수 있으므로, 수정 후 레이아웃을 확인해야 한다고 스킬은 말합니다.

상세 정보

작성자의 원본 설명

Use when reviewing rendered HTML, interactive components, or design-system patterns related to Use correct list structure. Check native semantics first, then inspect keyboard behavior, focus flow, accessible names, and screen-reader output where relevant.

repo: thedaviddias/Front-End-Checklist

인기도

GitHub 스타
75k
순위
#2923
라이선스
MIT
업데이트
2026. 10. 31.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬