2020-10-06 23:10:08 +05:30

1.5 KiB

id, challengeType, videoUrl, forumTopicId, title
id challengeType videoUrl forumTopicId title
bad87fee1348bd9aedf08829 0 https://scrimba.com/p/pVMPUv/c2EVnf6 16823 创建一个输入框

Description

现在让我们来创建一个form表单。 input输入框可以让你轻松获得用户的输入。 你可以像这样创建一个文本输入框: <input type="text"> 注意:input输入框是没有结束标记的。

Instructions

在列表下面创建一个type属性为textinput输入框。

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>

Solution