Skip to content

Latest commit

Β 

History

History
82 lines (51 loc) Β· 3.59 KB

File metadata and controls

82 lines (51 loc) Β· 3.59 KB

πŸ“˜ Day 11 – Travel Agency Demo (Practical)


πŸ”° Overview

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.


πŸ“‚ File Structure

Day11/
└── index.html    # Travel Agency demo page (static HTML)

🧠 What’s in this File (Practical Breakdown)

βœ… Header & Navigation

  • 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>).

βœ… Main Content – Destinations List

  • 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.

βœ… Hero Section

  • An image followed by an <article> describing services and an <aside> linking to a YouTube page for β€œBest Packages”.

βœ… Media

  • Images are embedded using absolute URLs. Good for demos but consider local assets for production.

βœ… Footer

  • A simple footer with copyright text.

πŸ’‘ Skills & Concepts Practiced

βœ”οΈ 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


πŸ“Œ Quick Fixes & Improvements (Actionable)

  1. Tag casing: Use lowercase tags β€” <header>, <main>, etc. HTML is case-insensitive in practice, but lowercase is the standard.
  2. Lists: Wrap <li> items in <ul> or <ol> so the markup is valid and accessible.
  3. Heading levels: Replace h5 used near top-level content with appropriate levels (h2/h3) to preserve document outline.
  4. Image sizes & responsiveness: Avoid fixed height/width attributes; use CSS or responsive attributes like max-width:100% for fluid layouts.
  5. Alt text quality: Make alt attributes descriptive for accessibility (e.g., alt="Travelling Agency Logo").
  6. Semantic grouping: Keep the <main> tag to wrap primary content only β€” don’t nest it inside unrelated container tags.
  7. Validate HTML: Run the page through an HTML validator (validator.w3.org) to catch structural issues.

πŸ”§ Suggested Tasks (Practice)

  • βœ… 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.

πŸš€ Next Steps

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.