Project: Specials and Reviews
Instructions

Write today's specials

Step 1 of 4
Write today's specials, with a sale price.

Instructions

In index.html:

  • Under the <img> line, add an <h2> for today's specials.
  • Under it, add a paragraph about a dish on sale: the old price in <del>, the new price in <ins>.
  • Add one more paragraph with one word in <mark>.
Example solution
  • Under the photo (the <img ...> line), write this heading:
    <h2>Today's Specials</h2>
  • Under the heading, write this paragraph. <del> draws a line through the old price. <ins> draws a line under the new price:
    <p><strong>Pancake stack</strong> with maple syrup. Was <del>$9</del>, now only <ins>$7</ins>!</p>
  • Under it, write this paragraph. <mark> gives a word a yellow background. <em> makes a word italic:
    <p>Try our <mark>new</mark> <em>cherry croissant</em>. It sells out fast.</p>
How it works

Add guest reviews

Step 2 of 4
Add two reviews from happy guests.

Instructions

In index.html:

  • Under the paragraph with <mark>, add an <h2> for guest reviews.
  • Under it, add two reviews, each in a <blockquote>. After each </blockquote>, add a <p> with the name of the guest.
  • In one name paragraph, put a blog or magazine name in <cite>.
Example solution
  • Under the specials, write this heading:
    <h2>What Guests Say</h2>
  • Under the heading, write the first review, and under it a paragraph with the name of the guest:
    <blockquote>The best pancakes I have ever had. I come back every Sunday!</blockquote>
    <p>Sam, from <cite>The Food Blog</cite></p>
  • Under the name, write a second review. Use a new <blockquote> with your own words:
    <blockquote>Cozy place, friendly people, and the coffee is perfect.</blockquote>
  • Under the second review, write a paragraph with a name:
    <p>Alex</p>
How it works

One rule for every heading

Step 3 of 4
Style every heading with one rule. A <style> element in the head holds CSS for the whole page.

Instructions

In index.html:

  • In the head, under <title>My Website</title>, add a <style> element.
  • Move the styles of <body> and <h1> to body and h1 rules there. Delete those two style attributes.
  • Add an h2 rule with a font-size.
Example solution
  • Find the line <title>My Website</title>. Under that line, before </head>, write:
    <style>
    body {background-color: #F2F1EE; font-family: system-ui;}
    h1 {font-size: 80px; text-align: center;}
    </style>
  • Change <body style="background-color:#F2F1EE; font-family:system-ui;"> back to <body>.
  • Change <h1 style="font-size:80px; text-align:center;"> back to <h1>.
  • Do not change the <p style="..."> of the short sentence under the name.
  • In the style element, under the h1 line, write one more line. It changes all h2 headings at once:
    h2 {font-size: 30px; letter-spacing: -1px;}
How it works

Turn reviews into cards

Step 4 of 4
Turn the reviews into white cards with round corners.

Instructions

In index.html:

  • In the style element, add a blockquote rule with background-color: white, a border-radius, padding: 20px 24px and margin: 16px 0.
  • Add a mark rule with a light orange HEX background-color, like #FFE8D6.
Example solution
  • In the style element, under the h2 line, write this rule:
    blockquote {
      background-color: white;
      border-radius: 20px;
      padding: 20px 24px;
      margin: 16px 0;
      font-size: 20px;
    }
  • Under it, write this rule. It gives the word in <mark> a soft orange background:
    mark {background-color: #FFE8D6;}
How it works
Click Submit to grade your project.