بتل کد Battle Codeدارد باز می‌شود…

جواب «Step 4: Comments and Honesty Label» چالش 4 از جلسه‌ی 8

سؤال

۱. بالای header و بالای section هر کدام یک توضیح <!-- ... --> بنویس که بگوید آن بخش چه می‌کند.
۲. پایین صفحه یک <footer> بگذار با دو پاراگراف: یکی که با AI: شروع می‌شود (کدام بخش‌ها را هوش مصنوعی نوشت) و یکی که با Me: (کدام‌ها را خودت).

راهنما

<footer><p>AI: the intro sentence</p><p>Me: the colours, the font and the steps</p></footer>.

یک جواب درست

<!-- The header: the game's name and one sentence about it -->
<header>
  <h1>Catch the Stars</h1>
  <p class="intro">Move your basket and catch every falling star before it hits the ground!</p>
</header>

<!-- How to play: the rules as a numbered list -->
<section id="how">
  <h2>How to play</h2>
  <ol>
    <li>Move the basket with the arrow keys.</li>
    <li>Catch the falling stars.</li>
    <li>You have three lives.</li>
  </ol>
</section>

<footer>
  <p>AI: the intro sentence and the first page layout.</p>
  <p>Me: the colours, the font, the steps and the comments.</p>
</footer>

<style>
body { font-family: Georgia, serif; margin: 0; }
header { padding: 16px; background: midnightblue; color: gold; }
#how { padding: 16px; }
footer { padding: 16px; font-size: 14px; }
</style>

اول خودت امتحان کن؛ جواب‌های دیگر هم قبول است. برگرد و خودت حلش کن