1.5 KiB
1.5 KiB
id, title, challengeType, videoUrl, forumTopicId, localeTitle
id | title | challengeType | videoUrl | forumTopicId | localeTitle |
---|---|---|---|---|---|
bad87fee1348bd9aedf08829 | Create a Text Field | 0 | https://scrimba.com/p/pVMPUv/c2EVnf6 | 16823 | 创建一个输入框 |
Description
form
表单。
input
输入框可以让你轻松获得用户的输入。
你可以像这样创建一个文本输入框:
<input type="text">
注意:input
输入框是没有结束标记的。
Instructions
type
属性为text
的input
输入框。
Tests
tests:
- text: '网页中有一个<code>type</code>属性为<code>text</code>的<code>input</code>输入框。'
testString: assert($("input[type=text]").length > 0);
Challenge Seed
<h2>CatPhotoApp</h2>
<main>
<p>Click here to view more <a href="#">cat photos</a>.</p>
<a href="#"><img src="https://bit.ly/fcc-relaxing-cat" alt="一只仰卧着的萌猫"></a>
<p>猫咪最喜欢的三件东西:</p>
<ul>
<li>猫薄荷</li>
<li>激光笔</li>
<li>千层饼</li>
</ul>
<p>猫咪最讨厌的三件东西:</p>
<ol>
<li>跳蚤</li>
<li>打雷</li>
<li>同类</li>
</ol>
</main>