aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/html/element/textarea
diff options
context:
space:
mode:
authoryuchuan <1738733078@qq.com>2022-03-15 21:42:18 +0800
committerGitHub <noreply@github.com>2022-03-15 21:42:18 +0800
commitbcfbbe117eab904ffc03726209b7a3e42a52eb5f (patch)
tree0572dd848a8ab2ba6d094a7089850aab3d1bf379 /files/zh-cn/web/html/element/textarea
parent42c588ef3ded2d0cc2f4a71d5d5f90a2c66e534e (diff)
downloadtranslated-content-bcfbbe117eab904ffc03726209b7a3e42a52eb5f.tar.gz
translated-content-bcfbbe117eab904ffc03726209b7a3e42a52eb5f.tar.bz2
translated-content-bcfbbe117eab904ffc03726209b7a3e42a52eb5f.zip
fix zh-cn/docs/web/html/* pages with an EmbedLiveSample error and html codeblock style #2846 (#4525)
Diffstat (limited to 'files/zh-cn/web/html/element/textarea')
-rw-r--r--files/zh-cn/web/html/element/textarea/index.html4
1 files changed, 2 insertions, 2 deletions
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 {
<p>This example has a placeholder set. Notice how it disappears when you start typing into the box.</p>
-<pre>&lt;textarea name="textarea"
+<pre class="brush: html">&lt;textarea name="textarea"
rows="5" cols="30"
placeholder="Comment text."&gt;&lt;/textarea&gt;</pre>
-<p>{{ EmbedLiveSample('Placeholder','600','80') }}</p>
+<p>{{ EmbedLiveSample('占位符','600','80') }}</p>
<div class="blockIndicator note">
<p><strong>Note:</strong> Placeholders should only be used to show an example of the type of data that should be entered into a form; they are <em>not</em> 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.</p>