Skip to content

MuhammadShahsawar/HTML-Recipe-Hub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HTML Recipe Hub Logo

HTML Recipe Hub

A portfolio-worthy recipe website built with pure semantic HTML5

HTML5 License: MIT GitHub Pages Version Accessibility

No CSS. No JavaScript. No frameworks. Just HTML.

Live Demo · Report Bug · Request Feature


Description

HTML Recipe Hub is a fully functional recipe website that proves you don't need stylesheets, scripts, or frameworks to build an organized, accessible, and portfolio-ready web project. Every page is crafted with semantic HTML5 elements — from navigation and forms to structured recipe content with Schema.org microdata.

This project is ideal for developers learning HTML fundamentals, educators teaching web accessibility, or anyone who wants a clean static site deployable to GitHub Pages in seconds.


Features

  • Home — Featured recipes, category links, and latest additions
  • Categories — 8 organized categories with anchor-based navigation
  • Recipe Details — 12 full recipes with ingredients, instructions, and chef tips
  • Search — Native HTML5 search input with <datalist> autocomplete and alphabetical recipe index
  • Favorites — Curated editor's picks with static bookmark-style listings
  • Contact — Accessible contact form with mailto: fallback and FAQ section
  • SEO Readysitemap.xml and robots.txt included
  • Auto Deploy — GitHub Actions workflow for GitHub Pages
  • Custom SVG Branding — Original logo, favicon, and social preview assets

Screenshots

This project intentionally uses zero CSS — what you see is the browser's default rendering of semantic HTML5.

HTML Recipe Hub — Pure HTML5 Recipe Website

Home Page Categories
Open index.html in any browser Open pages/categories.html
Recipe Details Search
Open any file in pages/recipes/ Open pages/search.html

Live Demo

🌐 Production: https://html-recipe-hub.roboticela.com

📦 GitHub Pages: https://muhammadshahsawar.github.io/HTML-Recipe-Hub/


Installation

No build tools, package managers, or dependencies required.

Option 1 — Clone the repository

git clone https://github.com/MuhammadShahsawar/HTML-Recipe-Hub.git
cd HTML-Recipe-Hub

Option 2 — Download ZIP

Download the repository as a ZIP from GitHub and extract it to your preferred location.


Usage

Local Development

Open index.html directly in any modern web browser:

# Windows
start index.html

# macOS
open index.html

# Linux
xdg-open index.html

Or serve locally with any static file server:

# Python 3
python -m http.server 8000

# Then visit http://localhost:8000

GitHub Pages Deployment

  1. Push this repository to GitHub
  2. Go to Settings → Pages
  3. Under Build and deployment, set source to GitHub Actions
  4. Push to the main branch — the included workflow deploys automatically

Project Structure

HTML-Recipe-Hub/
├── .github/
│   └── workflows/
│       └── deploy.yml          # GitHub Pages CI/CD
├── assets/
│   ├── icon.svg                # Project logo
│   ├── favicon.svg             # Browser favicon
│   ├── preview.svg             # Social preview (vector)
│   └── preview.png             # Social preview (raster)
├── pages/
│   ├── categories.html         # Browse by category
│   ├── search.html             # Search & recipe index
│   ├── favorites.html          # Editor's favorites
│   ├── contact.html            # Contact form & FAQ
│   └── recipes/
│       ├── avocado-toast.html
│       ├── beef-stir-fry.html
│       ├── blueberry-pancakes.html
│       ├── caesar-salad.html
│       ├── chicken-tikka-masala.html
│       ├── chocolate-chip-cookies.html
│       ├── greek-yogurt-parfait.html
│       ├── grilled-salmon.html
│       ├── margherita-pizza.html
│       ├── spaghetti-carbonara.html
│       ├── tomato-basil-soup.html
│       └── vegetable-curry.html
├── index.html                  # Home page
├── sitemap.xml                 # SEO sitemap
├── robots.txt                  # Crawler directives
├── README.md                   # This file
├── LICENSE                     # MIT License
└── .gitignore

HTML Features Demonstrated

Feature Implementation
Semantic layout <header>, <nav>, <main>, <article>, <section>, <aside>, <footer>
Navigation <ul>/<li> link lists with aria-label and aria-current
Forms <form>, <fieldset>, <legend>, <label>, <input>, <select>, <textarea>
Search <input type="search"> with <datalist> autocomplete
Time data <time datetime="PT45M"> for ISO 8601 durations
Contact <address> element and mailto: form action
Structured data Schema.org Recipe microdata via itemscope / itemprop
SEO meta <meta name="description">, robots, viewport
Favicon SVG favicon via <link rel="icon">
Deep linking Fragment identifiers (#breakfast, #dinner)

Accessibility Features

  • Semantic landmarks — Screen readers can navigate by region (header, main, nav, footer)
  • ARIA labelsaria-label on navigation blocks, aria-labelledby on sections
  • Current page indicationaria-current="page" on active nav links
  • Form accessibility — Every input has an associated <label>, required fields marked with <abbr title="required">
  • Meaningful headings — Logical heading hierarchy (h1h2h3)
  • Descriptive link text — No "click here" links; all links describe their destination
  • Time elements — Machine-readable dates and durations for assistive technology

Browser Support

Browser Supported
Chrome 90+
Firefox 88+
Safari 14+
Edge 90+
Opera 76+

All features use standard HTML5 — no polyfills or fallbacks needed.


Contributing

Contributions are welcome! Here's how to get started:

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/my-recipe
  3. Add your recipe as a new HTML file in pages/recipes/
  4. Update pages/categories.html, pages/search.html, and sitemap.xml
  5. Commit your changes: git commit -m "Add: New recipe name"
  6. Push to your fork: git push origin feature/my-recipe
  7. Open a Pull Request

Please ensure all new pages follow the existing semantic HTML5 patterns and contain no CSS or JavaScript.


License

This project is licensed under the MIT License — see the LICENSE file for details.


Author

Muhammad Shahsawar


Acknowledgements


Built with ❤️ and pure HTML5

⭐ Star this repo if you find it useful!

About

A pure HTML5 recipe website — no CSS, no JavaScript, no frameworks. Semantic, accessible, and GitHub Pages ready.

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages