aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/html/element/textarea/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn/web/html/element/textarea/index.html')
-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>