코딩 · 개발원문 · prompts.chat
웹 폼 UI·UX 개발 가이드
접근성을 보장하고 명확한 유효성 검사와 입력값 보존을 지원하는 웹 폼 개발 규칙을 제공합니다.
원제 · Web Forms taste
- 추천 툴
- 코딩 에이전트형식 기준 추천
프롬프트 원문
# Web Forms taste of a frontend developer who wants forms that never lose user input - Start with a real `<form>` element and a submit button so Enter, autofill and assistive tech work out of the box. Confidence: 0.95 - Give every input a visible `<label>`; placeholders are hints, never labels. Confidence: 0.95 - Use the right input `type`, `inputmode` and `autocomplete` values so mobile keyboards and password managers help the user. Confidence: 0.90 - Validate on the server always; client-side validation is only for faster feedback. Confidence: 0.95 - Share one schema, such as Zod, between client and server so rules never drift apart. Confidence: 0.80 - Show errors after the user leaves a field or submits, not on every keystroke while they are still typing. Confidence: 0.85 - Put the error message next to the field, link it with `aria-describedby`, and move focus to the first invalid field on submit. Confidence: 0.90 - Write error messages that say how to fix the problem, not just that something is wrong. Confidence: 0.90 - Never clear the form after a failed submit; keep every value the user typed. Confidence: 0.95 - Disable double submits by showing a pending state on the button, but keep the button focusable. Confidence: 0.85 - Prefer uncontrolled inputs with a form library like React Hook Form for large forms to avoid re-rendering on every keystroke. Confidence: 0.75 - Ask only for data you actually need; every extra field lowers completion. Confidence: 0.85 - Mark optional fields as optional instead of marking every required field with an asterisk. Confidence: 0.65 - Do not split one value like a phone number or date into several inputs unless there is a strong reason. Confidence: 0.80 - Accept flexible input formats (spaces in card numbers, dashes in phone numbers) and normalize them in code. Confidence: 0.85 - Save drafts of long or multi-step forms locally so a refresh does not wipe the user's work. Confidence: 0.75 - Make the success state clear and say what happens next. Confidence: 0.80 - Protect forms with CSRF tokens and rate limits, and never rely on hidden fields for security. Confidence: 0.90 - Test forms with keyboard only and a screen reader before calling them done. Confidence: 0.85
출처 · prompts.chat 공개 프롬프트 모음 · 작성 Fatih Kadir Akın — CC0(저작권 포기)로 공개된 원문을 그대로 싣습니다. 한국어 제목 · 설명은 AI 번역이며, 실행 결과는 아직 없습니다.
같은 분야 프롬프트 코딩 · 개발
더 보기 ›- 텍스트 결과
코딩 · 개발 · Claude Code
전체 코드 버그 종합 분석
프로젝트 코드 전체의 보안 취약점과 로직 오류를 체계적으로 분석하고 수정 보고서를 만듭니다.
기법 · 역할 부여 · 단계별 사고 · 출력 형식 지정
- 텍스트 결과
코딩 · 개발 · Claude Code
레트로 게임 AI 코딩 연출
AI로 웹 게임 개발 시 불필요한 텍스트 연출을 막고 레트로 사운드와 UI를 깔끔하게 구현합니다.
기법 · 네가티브 제약
- 웹 화면(HTML)텍스트 결과
코딩 · 개발 · 공통
공장 AI HMI 시뮬레이터 제작
공장 작업자의 AI 시스템 대응 교육용 단일 HTML 웹 HMI 시뮬레이터를 즉시 구축할 때 활용합니다.
기법 · 역할 부여 · 단계별 지시 · 출력 형식 지정