Welcome to Day 11 — a practical project day where you built a small Travel Agency webpage. This lesson focused on applying HTML structure, embedding media, and organizing content into semantic regions (header, main, section, article, aside, and footer).
The page demonstrates how to present travel destinations, imagery, a short agency description, and a navigation menu. It’s an excellent exercise in turning raw content into a presentable static page.
Day11/
└── index.html # Travel Agency demo page (static HTML)
- Contains a logo image and a title for the travel agency.
- A simple navigation menu (
<nav>) linking to Home, Packages, and About. - Note: the file uses
<Header>capitalization — HTML tags should be lowercase (<header>).
- A list of Most Visited Places in Karnataka with short descriptions for each place.
- Currently implemented using bare
<li>elements without a surrounding<ul>/<ol>; these should be wrapped in a list element for valid HTML and correct semantics.
- An image followed by an
<article>describing services and an<aside>linking to a YouTube page for “Best Packages”.
- Images are embedded using absolute URLs. Good for demos but consider local assets for production.
- A simple footer with copyright text.
✔️ Structuring a small multi-section webpage
✔️ Embedding images and basic navigation
✔️ Using semantic regions (header, main, section, article, aside, footer) — though some tags need correction
✔️ Writing content-focused HTML for a simple static site
- Tag casing: Use lowercase tags —
<header>,<main>, etc. HTML is case-insensitive in practice, but lowercase is the standard. - Lists: Wrap
<li>items in<ul>or<ol>so the markup is valid and accessible. - Heading levels: Replace
h5used near top-level content with appropriate levels (h2/h3) to preserve document outline. - Image sizes & responsiveness: Avoid fixed
height/widthattributes; use CSS or responsive attributes likemax-width:100%for fluid layouts. - Alt text quality: Make
altattributes descriptive for accessibility (e.g.,alt="Travelling Agency Logo"). - Semantic grouping: Keep the
<main>tag to wrap primary content only — don’t nest it inside unrelated container tags. - Validate HTML: Run the page through an HTML validator (validator.w3.org) to catch structural issues.
- ✅ Wrap destination
<li>elements in a proper<ul>and style with CSS later. - ✅ Replace the capitalized
<Header>with<header>and ensure the<main>element contains only the primary content. - ✅ Add a
<meta name="description">in<head>for SEO. - ✅ Convert absolute image URLs into local assets and reference them from an
assets/folder. - ✅ Add a contact form (small) to the page for booking inquiries — this ties back to the Day 11 forms objective.
Turn this static demo into a small project: add CSS to style the layout, make images responsive, and add a contact form that POSTs to a demo endpoint (or uses JavaScript to simulate submission). This will combine everything you’ve learned across Days 9–11 into a simple, deployable page.