create-web-form

Create accessible HTML web forms with ARIA and server-side handling.

Updated Aug 18, 2025
One-click install
npx skills add https://github.com/hdicko/leidimen --skill create-web-form-hdicko
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-web-form
Source: https://github.com/hdicko/leidimen/tree/main/.github/skills/create-web-form
Command: npx skills add https://github.com/hdicko/leidimen --skill create-web-form-hdicko

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Many web projects need forms that are not only functional but also accessible, secure, and properly validated from the browser to the server. This Skill consolidates best practices and reference material so developers can avoid common pitfalls (accessibility oversights, validation gaps, insecure data handling) and deliver reliable forms quickly.

Core Features & Use Cases

  • HTML structure & semantics: guidance on form markup, labels, fieldsets, legends, and ARIA roles to ensure screen-reader friendliness.
  • Styling & UX: CSS patterns, layout (Flexbox/Grid), responsive design, and focus styling for keyboard users.
  • Client-side behavior: JavaScript techniques for validation, live error messages, progressive enhancement, and graceful degradation.
  • Server-side processing: examples and secure patterns for PHP and Python/Flask backends, file uploads, JSON handling, and MySQL integration.
  • Security & performance: HTTPS, input sanitization, prepared statements, cookies, CORS considerations, and caching strategies.
  • Use case: building contact, signup, or payment forms that must validate input, provide ARIA-compliant feedback, and persist data to a database or REST API.

Quick Start

Create a responsive contact form with name, email, and message fields that includes ARIA labels, client-side validation, and a PHP or Python endpoint to accept POST submissions.

Frequently Asked Questions about create-web-form

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build accessible web forms with ARIA roles and semantic HTML?

Accessible web forms require semantic HTML elements like fieldsets, legends, and labels combined with ARIA roles to ensure screen-reader friendliness. This Skill provides reference patterns for structuring forms, applying CSS focus styling for keyboard users, and implementing responsive layouts using Flexbox or Grid.

What is the best way to validate form input on the client side before submission?

Client-side form validation uses JavaScript techniques like progressive enhancement and live error messages to validate input before submission. This approach provides immediate user feedback and graceful degradation, ensuring robust interactivity without relying solely on server-side checks.

How do I handle secure web form submissions with PHP or Python backends?

Secure web form submissions involve sending data over HTTPS and processing it through PHP or Python/Flask backends. This Skill outlines secure patterns including input sanitization, prepared statements for MySQL integration, and proper JSON handling to prevent insecure data processing.

Can I create a file upload form that integrates directly with a MySQL database?

Yes, you can create file upload forms that process and persist data directly to a MySQL database. This Skill covers end-to-end handling, providing examples for secure server-side processing in Python or PHP, file uploads, and database integration using prepared statements.

Does this approach support multi-section forms with progressive enhancement?

Yes, this approach supports building multi-section forms using JavaScript progressive enhancement and graceful degradation. It applies ARIA accessibility roles and semantic HTML structure to ensure complex, interactive forms remain functional and accessible across different user environments.

Why do my HTML forms fail accessibility checks, and how can I fix validation gaps?

HTML forms fail accessibility checks due to missing semantic labels, inadequate ARIA roles, and validation gaps that lack live error messages. This Skill consolidates best practices to fix these pitfalls by guiding ARIA-compliant feedback, keyboard focus styling, and robust JavaScript validation.