From 522489884e88bbd549cf4d879f4d865f3f4a5f14 Mon Sep 17 00:00:00 2001 From: Marcello Lamonaca Date: Mon, 4 Dec 2023 21:57:14 +0100 Subject: [PATCH] improve notes for HTML `datalist`, `meter` and other inputs --- docs/languages/html/html.md | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/docs/languages/html/html.md b/docs/languages/html/html.md index 60f6f39..0b6860f 100644 --- a/docs/languages/html/html.md +++ b/docs/languages/html/html.md @@ -549,19 +549,16 @@ Older browsers don't support this input type. The `` HTML element represents either a scalar value within a known range or a fractional value. ```html linenums="1" - +current value ``` -### More Input Types +### Datalist (Autocomplete) -```html linenums="1" - - - - +The `datalist` HTML element can provide suggestions to an input that targets it's `id` with the `list` attribute. - +```html + ``` +### More Input Types + +```html linenums="1" + + + + + +``` + ### [Using Built-In Form Validation](https://developer.mozilla.org/en-US/docs/Learn/Forms/Form_validation) One of the most significant features of HTML5 form controls is the ability to validate most user data without relying on JavaScript.