create-web-form
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseCreate Web Form Skill
创建Web表单技能
Overview
概述
This skill provides comprehensive reference materials and best practices for creating web forms. It covers HTML syntax, UI/UX design, form validation, server-side processing (PHP and Python), data handling, and network communication.
本技能提供创建Web表单的全面参考资料与最佳实践,涵盖HTML语法、UI/UX设计、表单验证、基于PHP和Python的服务端处理、数据处理以及网络通信等内容。
Purpose
目的
Enable developers to build robust, accessible, and user-friendly web forms by providing:
- HTML form syntax and structure
- CSS styling techniques for form elements
- JavaScript for form interactivity and validation
- Accessibility best practices
- Server-side form processing with PHP and Python
- Database integration methods
- Network data handling and security
- Performance optimization
帮助开发者构建健壮、可访问且用户友好的Web表单,提供以下内容支持:
- HTML表单语法与结构
- 表单元素的CSS样式技巧
- 用于表单交互与验证的JavaScript
- 可访问性最佳实践
- 基于PHP和Python的服务端表单处理
- 数据库集成方法
- 网络数据处理与安全
- 性能优化
Reference Files
参考文件
This skill includes the following reference documentation:
本技能包含以下参考文档:
UI & Styling
UI与样式
- - Form styling techniques and best practices
styling-web-forms.md - - Comprehensive CSS reference for form styling
css-styling.md
- - 表单样式技巧与最佳实践
styling-web-forms.md - - 表单样式全面参考
css-styling.md
User Experience
用户体验
- - Web accessibility guidelines for forms
accessibility.md - - JavaScript techniques for form functionality
javascript.md - - Native form controls and their usage
form-controls.md - - Progressive web app integration
progressive-web-app.md
- - 表单Web可访问性指南
accessibility.md - - 表单功能的JavaScript技巧
javascript.md - - 原生表单控件及其用法
form-controls.md - - 渐进式Web应用集成
progressive-web-app.md
HTML Structure
HTML结构
- - Fundamental HTML form structure
form-basics.md - - ARIA roles for accessible forms
aria-form-role.md - - Complete HTML form elements reference
html-form-elements.md - - Practical HTML form examples
html-form-example.md
- - HTML表单基础结构
form-basics.md - - 可访问表单的ARIA角色
aria-form-role.md - - HTML表单元素完整参考
html-form-elements.md - - 实用HTML表单示例
html-form-example.md
Server-Side Processing
服务端处理
- - Network form data handling
form-data-handling.md - - PHP form processing
php-forms.md - - Cookie management in PHP
php-cookies.md - - JSON handling in PHP
php-json.md - - Database integration with PHP
php-mysql-database.md - - Python contact form implementation
python-contact-form.md - - Flask forms tutorial
python-flask.md - - Building Flask web applications
python-flask-app.md - - Python web framework basics
python-as-web-framework.md
- - 网络表单数据处理
form-data-handling.md - - PHP表单处理
php-forms.md - - PHP中的Cookie管理
php-cookies.md - - PHP中的JSON处理
php-json.md - - PHP与数据库集成
php-mysql-database.md - - Python联系表单实现
python-contact-form.md - - Flask表单教程
python-flask.md - - 构建Flask Web应用
python-flask-app.md - - Python Web框架基础
python-as-web-framework.md
Data & Network
数据与网络
- - XML data format reference
xml.md - - HTTP protocol reference
hypertext-transfer-protocol.md - - Web security best practices
security.md - - Web API integration
web-api.md - - Performance optimization techniques
web-performance.md
- - XML数据格式参考
xml.md - - HTTP协议参考
hypertext-transfer-protocol.md - - Web安全最佳实践
security.md - - Web API集成
web-api.md - - 性能优化技巧
web-performance.md
Usage
使用方法
When creating a web form, consult the appropriate reference files based on your needs:
- Planning: Review and
form-basics.mdform-controls.md - Structure: Use and
html-form-elements.mdaria-form-role.md - Styling: Reference and
styling-web-forms.mdcss-styling.md - Interactivity: Apply techniques from
javascript.md - Accessibility: Follow guidelines in
accessibility.md - Server Processing: Choose between PHP or Python references
- Data Storage: Consult database and data format references
- Optimization: Review and
web-performance.mdsecurity.md
创建Web表单时,可根据需求查阅相应的参考文档:
- 规划:查阅与
form-basics.mdform-controls.md - 结构:使用与
html-form-elements.mdaria-form-role.md - 样式:参考与
styling-web-forms.mdcss-styling.md - 交互:应用中的技巧
javascript.md - 可访问性:遵循中的指南
accessibility.md - 服务端处理:选择PHP或Python相关参考文档
- 数据存储:查阅数据库与数据格式相关参考
- 优化:参考与
web-performance.mdsecurity.md
Best Practices
最佳实践
- Always validate input on both client and server sides
- Ensure forms are accessible to all users
- Use semantic HTML elements
- Implement proper error handling and user feedback
- Secure form data transmission with HTTPS
- Follow progressive enhancement principles
- Test forms across different browsers and devices
- Optimize for performance and user experience
- 始终在客户端和服务端同时验证输入
- 确保表单对所有用户可访问
- 使用语义化HTML元素
- 实现完善的错误处理与用户反馈
- 使用HTTPS保障表单数据传输安全
- 遵循渐进增强原则
- 在不同浏览器与设备上测试表单
- 针对性能与用户体验进行优化