Project: Open Kai's Café
Instructions

Name your café

Step 1 of 4
Give your café a name and a welcome. Everything you write goes between <body> and </body>.

Instructions

In index.html:

  • Between <body> and </body>, add an <h1> with the name of your café.
  • Under it, add a <p> with one short sentence about the café.
Example solution
  • Write the name of the café between <body> and </body>:
    <h1>Kai's Café</h1>
  • On the next line, under the h1, write a short sentence about the café:
    <p>Fresh coffee, warm croissants, and the best pancakes in town.</p>
  • You can use your own name and your own words.
How it works

Tell your story

Step 2 of 4
Tell the visitor how the café started.

Instructions

In index.html:

  • Under the <p> line, add an <h2> heading for the story of the café, like Our Story.
  • Under the <h2>, add two paragraphs that tell how the café started.
Example solution
  • Under the <p> line, write this heading:
    <h2>Our Story</h2>
  • Under the heading, write two paragraphs. Use your own sentences, or these:
    <p>Kai opened this little café in 2020 with one coffee machine and a big dream.</p>
    <p>Today we bake everything fresh every morning, right here in our own kitchen.</p>
How it works

Add a photo

Step 3 of 4
Show the visitor a photo of the café.

Instructions

In index.html:

  • Under the two paragraphs after the <h2>, add an <img> of the café.
  • Give it these attributes:
    src="https://www.w3schools.com/w3images/coffeeshop.jpg" alt="Our café with wooden tables" width="400"
Example solution
  • Under the two story paragraphs, write this image:
    <img src="https://www.w3schools.com/w3images/coffeeshop.jpg" alt="Our café with wooden tables" width="400">
How it works

Add color and style

Step 4 of 4
Add color and a font to the page. You do it with a style attribute in the first tag of an element.

Instructions

In index.html:

  • Add a style attribute to <body> with a background-color and a font-family.
  • Add a style attribute to <h1> with a font-size and text-align:center.
  • Add a style attribute to the <p> under the <h1> with text-align:center and color:gray.
Example solution
  • Change <body> to:
    <body style="background-color:#F2F1EE; font-family:system-ui;">
  • Change <h1> to:
    <h1 style="font-size:80px; text-align:center;">
  • Change the <p> of the short sentence under the name to:
    <p style="text-align:center; color:gray;">
  • You can skip this one: to round the photo corners, write style="border-radius:20px;" in the <img ...> tag, before the >.
How it works
Click Submit to grade your project.