Перейти до вмісту

Форми

Елементи й атрибути, що відносяться до форм.

Досвід використання і ставлення до форм

Surprisingly, <input type="color"/> was the most used form-related feature this year, with 41.8% of respondents reporting having used it.

But when looking at positive sentiment, basic UI building blocks like autocomplete (<datalist>) and dropdowns (Customizable Select) top the rankings, showing that developers value features that are customizable and can be tailored to their needs.

Групувати за:

Сортувати за:

1
Форми
48.9%
39.5%
10.7%
2
Форми
44.1%
32.8%
21.7%
3
Форми
19.1%
30.3%
50.1%
4
Форми
19%
47.8%
32.5%

Досвід

  • Використовував(-ла): Респонденти, які це використовували.
  • Чув(-ла) про це: Респонденти, які чули про це, але не використовували.
  • Вперше чую: Респонденти, які не чули про це.

Ставлення

  • Позитивно: Респонденти, які зацікавлені у вивченні технології або хочуть використовувати її ще.
  • Нейтрально: Респонденти, які не висловили жодного ставлення до технології.
  • Негативно: Респонденти, які не зацікавлені у вивченні технології або використовували її і мали негативний досвід.

Проблеми форм

Styling & customization of default form control UI elements remains a big stumbling block, with nearly half of pain points being about it.

Form validation is also a problem, especially when it comes to more advanced use cases like validating one field's value based on another.

Які проблеми HTML-форм найбільше вас розчаровують?
Довільна форма
Множинний вибір
Головні проблеми загалом.

Вигляд:

Елементи, що не є одним(-ою) із “limitations”
0%
20%
40%
60%
80%
100%
01
Styling & customization
6
02
Input element issues
9
03
Browser vendor issues
3
+1
04
Form Validation
7
-2
05
Accessibility
1
+1
06
End-user experience
+12
07
Developer Experience
08
Cognitive overload
+5
09
Editing APIs
1
+7
10
Reliance on JavaScript
-1
11
Forms & JS
1
+6
12
Form handling
1
13
1
+7
14
Label issues
15
Education
16
17
State management
1
18
HTTP actions
19
Reliance on frameworks
20
Form Submission
-10
21
Technical issues
1
22
<button>
23
Multi-step forms
0%
20%
40%
60%
80%
100%

Рекомендовані джерела

CSS-only Form Validation Hints
Kevin Powell

CSS-only Form Validation Hints

A look at how we can use CSS to add contextual hints to users as they fill out a form, including creating an SVG by hand and animating it based on whether a field is valid or invalid.
Спонсорований вміст від наших партнерів. Детальніше.