From 5828d0140b48006c9f3607111445122ba5dde995 Mon Sep 17 00:00:00 2001 From: DrakesBot12 Date: Thu, 11 Jun 2026 17:17:53 +0300 Subject: [PATCH 1/6] docs: optional --- css/optional/demos/basic/index.html | 80 +++++++++++++++++++++++++++++ css/optional/index.md | 76 ++++++++++++++++++++++----- 2 files changed, 142 insertions(+), 14 deletions(-) create mode 100644 css/optional/demos/basic/index.html diff --git a/css/optional/demos/basic/index.html b/css/optional/demos/basic/index.html new file mode 100644 index 0000000000..f2c5069701 --- /dev/null +++ b/css/optional/demos/basic/index.html @@ -0,0 +1,80 @@ + + + + Название демо — Title статьи — Дока + + + + + + + + +
+
+ + + +
+
+ + \ No newline at end of file diff --git a/css/optional/index.md b/css/optional/index.md index 8dc486ece8..198037c39b 100644 --- a/css/optional/index.md +++ b/css/optional/index.md @@ -1,10 +1,15 @@ --- title: "`:optional`" -description: "Показываем, какие поля заполнять необязательно." +description: "Показывает элементы формы, которые не обязательны для заполнения." authors: - inventoris +contributors: + - drakesbot12 keywords: - псевдокласс + - формы + - optional + - валидация related: - html/form - html/required @@ -16,40 +21,83 @@ tags: ## Кратко -С помощью псевдокласса `:optional` можно выбрать элементы, заполнять которые необязательно. Это могут быть [``](/html/input/), [`