From bcfbbe117eab904ffc03726209b7a3e42a52eb5f Mon Sep 17 00:00:00 2001 From: yuchuan <1738733078@qq.com> Date: Tue, 15 Mar 2022 21:42:18 +0800 Subject: fix zh-cn/docs/web/html/* pages with an EmbedLiveSample error and html codeblock style #2846 (#4525) --- files/zh-cn/web/html/element/textarea/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'files/zh-cn/web/html/element/textarea') diff --git a/files/zh-cn/web/html/element/textarea/index.html b/files/zh-cn/web/html/element/textarea/index.html index fa37b65db3..02d8cbed82 100644 --- a/files/zh-cn/web/html/element/textarea/index.html +++ b/files/zh-cn/web/html/element/textarea/index.html @@ -157,11 +157,11 @@ textarea:valid {

This example has a placeholder set. Notice how it disappears when you start typing into the box.

-
<textarea name="textarea"
+
<textarea name="textarea"
    rows="5" cols="30"
    placeholder="Comment text."></textarea>
-

{{ EmbedLiveSample('Placeholder','600','80') }}

+

{{ EmbedLiveSample('占位符','600','80') }}

Note: Placeholders should only be used to show an example of the type of data that should be entered into a form; they are not a substitute for a proper {{HTMLElement("label")}} element tied to the input. See {{SectionOnPage("/en-US/docs/Web/HTML/Element/input", "Labels and placeholders")}} for a full explanation.

-- cgit v1.2.3-54-g00ecf