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

viewport

하는 일

이 스킬은 모바일 레이아웃에 필요한 viewport 메타 태그가 페이지에 있는지 확인합니다. 반응형 웹사이트를 만드는 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓휴대폰에서 페이지가 아주 작게 보여 글을 읽으려면 확대해야 할 때.
  • ✓새 템플릿에 viewport 메타 태그가 빠져 있을 때.
  • ✓페이지 head 마크업을 출력하는 공용 컴포넌트를 검토할 때.

스킬 링크

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

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

사용 방법

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

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

Use this skill to help me: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/viewport/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분.

작동 방식

에이전트는 head 영역에서 viewport 태그가 있는지 확인하고, 없으면 추가합니다. 또한 확대를 막는 설정이 없는지 확인합니다.

기술 내용 (원본 SKILL.md)

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

Set the responsive viewport meta tag

Without the viewport meta tag, mobile browsers render pages at desktop width (typically 980px) then shrink them, making text unreadable without zooming.

Quick Reference

  • Add <meta name="viewport" content="width=device-width, initial-scale=1.0">
  • Never use maximum-scale=1 or user-scalable=no (breaks accessibility)
  • Essential for mobile-responsive layouts

Check

Verify that this HTML document includes a proper viewport meta tag for responsive design that controls how the page is displayed on mobile devices.

Fix

Add the viewport meta tag: <meta name="viewport" content="width=device-width, initial-scale=1.0"> in the head section.

Explain

Explain how the viewport meta tag enables responsive design and why it's essential for mobile-first web development.

Code Review

Review templates, server-rendered HTML, and shared components that output markup related to Set the responsive viewport meta tag. Flag exact elements, attributes, and routes where the rendered HTML violates the rule.


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

Rule page: https://frontendchecklist.io/rules/html/viewport

자주 묻는 질문

viewport 태그는 무엇을 하나요?

모바일 브라우저에 기기의 너비를 사용하도록 알려 줍니다. 그렇지 않으면 넓은 데스크톱 너비로 그린 뒤 페이지를 축소합니다.

어떤 설정은 피해야 하나요?

스킬은 maximum-scale=1이나 user-scalable=no를 쓰지 말라고 말합니다. 접근성을 해치기 때문입니다.

반응형 디자인에 이것이 필요한가요?

네. 스킬은 이를 모바일 반응형 레이아웃에 필수적이라고 설명합니다.

상세 정보

작성자의 원본 설명

Use when reviewing templates, rendered HTML, or shared components related to Set the responsive viewport meta tag. Validate the final browser-facing markup, not just the source framework abstraction.

repo: thedaviddias/Front-End-Checklist

인기도

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

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬