What you will use in this project
- Tables
- Images
- Description lists
- Links and bookmarks
<tr> is a row, <th> a header cell and <td> a normal cell.In index.html:
<h2>, add <h2 id="menu">Menu</h2>.<table>: a row with two <th>, then five rows with two <td>, item and price. Include Pancake stack, Cherry croissant and Cappuccino.<h2>What Guests Say</h2>. Your text can be different. Just before that heading, write:<h2 id="menu">Menu</h2><table>
<tr><th>Item</th><th>Price</th></tr>
<tr><td>Espresso</td><td>$3</td></tr>
<tr><td>Cappuccino</td><td>$4</td></tr>
<tr><td>Croissant</td><td>$3</td></tr>
<tr><td>Pancake stack</td><td>$7</td></tr>
<tr><td>Cherry croissant</td><td>$4</td></tr>
</table>In index.html:
table width: 100%, border-collapse: collapse and background-color: white.th, td padding: 12px 16px, text-align: left and border-bottom: 1px solid #EEEEEE.</style>), write:table {width: 100%; border-collapse: collapse; background-color: white;}
th, td {padding: 12px 16px; text-align: left; border-bottom: 1px solid #EEEEEE;}
th {color: gray; font-weight: normal;}In index.html:
<h2 id="menu">, before <table>, add a <p> with three <img> food photos.alt text, and one of these addresses as src:https://www.w3schools.com/w3images/croissant.jpg
https://www.w3schools.com/w3images/sandwich.jpg
https://www.w3schools.com/w3images/popsicle.jpgheight, like height="120".<h2> with id="menu". Under it, before <table>, write:<p>
<img src="https://www.w3schools.com/w3images/croissant.jpg" alt="Croissant" height="120" style="border-radius:16px;">
<img src="https://www.w3schools.com/w3images/sandwich.jpg" alt="Sandwich" height="120" style="border-radius:16px;">
<img src="https://www.w3schools.com/w3images/popsicle.jpg" alt="Popsicle" height="120" style="border-radius:16px;">
</p><dt> is a day and <dd> is its time.In index.html:
</body>, add an <h2> with id="hours".<dl> with two days, each in its own <dt>. Under each day, add its times in a <dd>.dt font-weight: bold.</body>. Just before that line, write:<h2 id="hours">Opening Hours</h2>
<dl>
<dt>Monday to Friday</dt>
<dd>7:00 to 17:00</dd>
<dt>Saturday and Sunday</dt>
<dd>8:00 to 15:00</dd>
</dl>dt {font-weight: bold;}#menu jumps to the element with id="menu".In index.html:
<p> with color:gray, add a paragraph with style="text-align:center;" and a link to #menu, like See the menu.</dl>, add a social media link with an https:// address and target="_blank".a a color. Change the <title> to the name of your café.<p style="text-align:center; color:gray;">...</p>. Under it, write:<p style="text-align:center;"><a href="#menu">See the menu</a></p></dl>. Under it, write a link that opens in a new tab:<p>Follow us on <a href="https://www.instagram.com" target="_blank">Instagram</a></p>a {color: #E8590C; font-weight: bold;}<title>My Website</title> to:<title>Kai's Café</title>