š Scenario: You are building a simple website for a local bakery. The website needs multiple pages like Home, Menu, and Contact. To keep the design consistent, you want to use reusable elements like a header and footer on every page.
šÆ Goal: Build a basic website structure with multiple pages and reusable header and footer elements that appear on all pages.
š What You'll Learn
Create a Home page with a welcome message
Create a Menu page listing bakery items
Create a Contact page with contact details
Create a reusable Header element with the bakery name
Create a reusable Footer element with copyright info
Add the Header and Footer to all pages
š” Why This Matters
š Real World
Websites often have multiple pages sharing common parts like headers and footers. Using reusable elements saves time and keeps design consistent.
š¼ Career
Web developers and designers use reusable components to build maintainable and scalable websites efficiently.
Progress0 / 4 steps
1
Create the Home page
Create a page called Home with a heading that says Welcome to Sweet Treats Bakery.
No-Code
Hint
Use a page tag with the attribute name="Home" and add an h1 heading inside.
2
Create the reusable Header element
Create a reusable element called Header that contains the bakery name Sweet Treats Bakery inside a heading tag.
No-Code
Hint
Use a reusable tag with the attribute name="Header" and add an h2 heading inside.
3
Add Header to Home page and create Menu page
Add the reusable Header element to the Home page. Then create a new page called Menu with a list of bakery items: Bread, Cake, and Cookies.
No-Code
Hint
Use the <use reusable="Header" /> tag inside the Home page. Create a Menu page with an unordered list of items.