diff --git a/curriculum/challenges/chinese-traditional/01-responsive-web-design/basic-html-and-html5/add-images-to-your-website.md b/curriculum/challenges/chinese-traditional/01-responsive-web-design/basic-html-and-html5/add-images-to-your-website.md index 4ea1b0c5c3..56464f5248 100644 --- a/curriculum/challenges/chinese-traditional/01-responsive-web-design/basic-html-and-html5/add-images-to-your-website.md +++ b/curriculum/challenges/chinese-traditional/01-responsive-web-design/basic-html-and-html5/add-images-to-your-website.md @@ -37,7 +37,7 @@ dashedName: add-images-to-your-website 在 `main` 元素裏,給 `p` 元素前面插入一個 `img` 元素。 -現在設置 `src` 屬性,以便它指向網址 `https://bit.ly/fcc-relaxing-cat` +現在設置 `src` 屬性,使它指向網址 `https://www.bit.ly/fcc-relaxing-cat`。 最後,不要忘記給 `img` 加上 `alt` 屬性。 @@ -52,7 +52,7 @@ assert($('img').length); 你的圖片應該有一個 `src` 屬性,其值爲貓咪圖片的 url。 ```js -assert(/^https:\/\/bit\.ly\/fcc-relaxing-cat$/i.test($('img').attr('src'))); +assert(/^https:\/\/(www\.)?bit\.ly\/fcc-relaxing-cat$/i.test($('img').attr('src'))); ``` 你的圖片元素的 `alt` 屬性值不應爲空。 @@ -86,7 +86,7 @@ assert( ```html

CatPhotoApp

- A cute orange cat lying on its back. + A cute orange cat lying on its back.

Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.

Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.

diff --git a/curriculum/challenges/chinese-traditional/01-responsive-web-design/basic-html-and-html5/create-a-form-element.md b/curriculum/challenges/chinese-traditional/01-responsive-web-design/basic-html-and-html5/create-a-form-element.md index aed6b1b078..58474048a2 100644 --- a/curriculum/challenges/chinese-traditional/01-responsive-web-design/basic-html-and-html5/create-a-form-element.md +++ b/curriculum/challenges/chinese-traditional/01-responsive-web-design/basic-html-and-html5/create-a-form-element.md @@ -20,7 +20,7 @@ dashedName: create-a-form-element # --instructions-- -把現有的 `input` 輸入框放到一個新建的表單 `form` 裏,然後設置 `form` 元素的 `action` 屬性值爲 `"https://freecatphotoapp.com/submit-cat-photo"`。 +把現有的 `input` 元素嵌套到一個表單 `form` 元素裏,然後設置 `form` 元素的 `action` 屬性值爲 `"https://www.freecatphotoapp.com/submit-cat-photo"`。 # --hints-- @@ -34,12 +34,11 @@ assert( ); ``` -`form` 的 `action` 屬性值應設置爲 `https://freecatphotoapp.com/submit-cat-photo`。 +`form` 的 `action` 屬性值應爲 `https://www.freecatphotoapp.com/submit-cat-photo`。 ```js -assert( - $('form').attr('action') === 'https://freecatphotoapp.com/submit-cat-photo' -); +const action = $('form').attr('action'); +assert(action.match(/^https:\/\/(www\.)?freecatphotoapp\.com\/submit-cat-photo$/i)) ``` `form` 元素應有開始標籤和結束標籤。 @@ -61,7 +60,7 @@ assert(

Click here to view more cat photos.

- A cute orange cat lying on its back. + A cute orange cat lying on its back.

Things cats love: