This document fulfills Criteria 1.6 - Code Validation from the Level 5 Diploma Project 3 requirements. It provides evidence that all HTML templates and CSS files have been validated using official W3C validation tools to ensure compliance with web standards and optimal performance.
- HTML Validation: W3C Markup Validator
- CSS Validation: W3C CSS Validator
All HTML templates have been validated using the W3C Markup Validator to ensure compliance with HTML5 standards and accessibility guidelines.
| URL | Template(s) | Purpose | Validation Status | Evidence |
|---|---|---|---|---|
/ |
base.html + index.html |
Homepage with room listings | ✅ PASSED | Screenshot |
/contact |
base.html + contact.html |
Contact information page | ✅ PASSED | Screenshot |
/login |
base.html + login.html |
User login form | ✅ PASSED | Screenshot |
/register |
base.html + register.html |
User registration form | ✅ PASSED | Screenshot |
/my-bookings |
base.html + my_bookings.html |
User's booking history | ✅ PASSED | Screenshot |
/rooms/1/book |
base.html + book.html |
Room booking form | ✅ PASSED | Screenshot |
/bookings/1/edit |
base.html + edit_booking.html |
Edit existing booking | ✅ PASSED | Screenshot |
- Total Pages Validated: 7
- Templates Covered: All 10 templates (base.html + 9 child templates)
- Validation Status: All pages passed W3C validation
- Standards Compliance: HTML5
- Accessibility: Semantic HTML with proper ARIA labels and form associations
The custom CSS file has been validated using the W3C CSS Validator to ensure proper syntax and cross-browser compatibility.
| CSS File | Purpose | Validation Status | Evidence |
|---|---|---|---|
style.css |
Custom styling and responsive design | ✅ PASSED | Screenshot |
- Total CSS Files Validated: 1
- Validation Status: Passed W3C CSS validation
- CSS Level: CSS3
- Features Used: Custom properties, flexbox, grid, responsive design
- Browser Compatibility: Modern browsers with fallbacks
- Live URL Validation: Tested actual rendered pages at https://dailafing.pythonanywhere.com/
- Template Inheritance: Validated combined output of base.html + child templates
- Accessibility Check: Verified semantic HTML structure and ARIA attributes
- Form Validation: Ensured proper form labels and input associations
- File Upload: Uploaded
app/static/css/style.cssdirectly to W3C CSS validator - Syntax Check: Verified CSS syntax and property usage
- Browser Compatibility: Checked for vendor prefixes and fallbacks
- Performance: Validated efficient CSS structure
- ✅ Doctype Declaration: HTML5 doctype used
- ✅ Character Encoding: UTF-8 encoding specified
- ✅ Semantic Elements: Proper use of
<nav>,<main>,<section>,<header> - ✅ Form Accessibility: All inputs have associated labels
- ✅ ARIA Attributes: Screen reader support with
aria-liveandaria-label - ✅ Meta Tags: Proper viewport and description meta tags
- ✅ Valid Syntax: All CSS rules properly formatted
- ✅ Custom Properties: CSS variables for consistent theming
- ✅ Responsive Design: Mobile-first approach with media queries
- ✅ Accessibility: High contrast ratios and focus indicators
- ✅ Performance: Efficient selectors and minimal redundancy
All HTML templates and CSS files have been successfully validated using official W3C validation tools. The Flask Hotel application meets web standards compliance requirements and demonstrates professional code quality suitable for production deployment.
Validation Date: 11/10/2025
Validator Versions: W3C Markup Validator, W3C CSS Validator
Overall Status: ✅ ALL VALIDATIONS PASSED