--- id: bad87fee1348bd9aedf08829 title: 創建一個輸入框 challengeType: 0 videoUrl: 'https://scrimba.com/p/pVMPUv/c2EVnf6' forumTopicId: 16823 dashedName: create-a-text-field --- # --description-- 現在讓我們來創建一個 Web 表單。 `input` 輸入框可以讓你輕鬆獲得用戶的輸入。 你可以像這樣創建一個文本輸入框: ```html ``` 注意 `input` 輸入框是沒有結束標籤的。 # --instructions-- 在列表下面創建一個類型爲 `text` 的 `input` 輸入框。 # --hints-- 網頁中應存在一個類型爲 `text` 的 `input` 輸入框。 ```js assert($('input[type=text]').length > 0); ``` # --seed-- ## --seed-contents-- ```html

CatPhotoApp

Click here to view more cat photos.

A cute orange cat lying on its back.

Things cats love:

Top 3 things cats hate:

  1. flea treatment
  2. thunder
  3. other cats
``` # --solutions-- ```html

CatPhotoApp

Click here to view more cat photos.

A cute orange cat lying on its back.

Things cats love:

Top 3 things cats hate:

  1. flea treatment
  2. thunder
  3. other cats
```