freeCodeCamp/curriculum/challenges/chinese/01-responsive-web-design/basic-html-and-html5/fill-in-the-blank-with-plac...

1.5 KiB
Raw Blame History

id title challengeType videoUrl localeTitle
bad87fee1348bd9aedf08833 Fill in the Blank with Placeholder Text 0 使用占位符文本填充空白

Description

Web开发人员传统上使用lorem ipsum text作为占位符文本。 “lorem ipsum”文字是从古罗马的西塞罗Cicero of Ancient Rome的着名文章中随机剪下来的。自16世纪以来Lorem ipsum文本被排版人员用作占位符文本这种传统在网上继续存在。好吧5个世纪足够长了。由于我们正在构建CatPhotoApp因此我们使用名为kitty ipsum text

Instructions

用这个kitty ipsum文本的前几个单词替换你的p元素里面的文字: Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.

Tests

tests:
  - text: 你的<code>p</code>元素应该包含所提供的<code>kitty ipsum text</code>的前几个单词。
    testString: 'assert.isTrue((/Kitty(\s)+ipsum/gi).test($("p").text()), "Your <code>p</code> element should contain the first few words of the provided <code>kitty ipsum text</code>.");'

Challenge Seed

<h1>Hello World</h1>

<h2>CatPhotoApp</h2>

<p>Hello Paragraph</p>

Solution

// solution required