Revolution Travel: Page Layout
Master HTML Structure and Semantic Web Development
Key Learning Objectives
Semantic HTML Structure
Learn to organize content using proper semantic sections like header, nav, main, and footer for better accessibility and SEO.
Content Organization
Master the art of structuring web content logically and marking up headings for improved document hierarchy.
Image Integration
Understand how to properly add images with appropriate alt text and organize media assets in web projects.
This exercise serves as the foundation for a complete website layout series. You'll start with basic page structure and gradually build complexity in subsequent exercises.
Visual Studio Code Setup Process
Open Project Folder
Navigate to File > Open Folder (Windows) or File > Open (Mac) to access the Revolution Travel directory
Trust Authors
When prompted about trusting authors, check the parent folder option and click 'Yes, I trust the authors'
Open HTML File
Open sanfran.html from the Revolution Travel folder to begin editing
Block-level Element Characteristics
Stacking Behavior
Block-level elements stack vertically like building blocks, each starting on a new line without manual spacing.
Width Properties
These elements automatically take up 100% of their parent container's width, creating full-width sections.
Common Examples
Paragraphs, headings, divs, lists, and semantic sections all follow block-level element behavior patterns.
Always include ALT text for images to ensure screen readers can describe visual content to users with visual impairments.
Navigation Setup Tasks
Ensures proper semantic structure and content organization
Provides additional semantic meaning for screen readers
Creates proper list structure for accessibility compliance
Maintains clean, readable code structure
Footer Implementation Process
Position Cursor
Place cursor between footer opening and closing tags, add line break for better code readability
Move Copyright Content
Select and cut the copyright paragraph from main section to relocate to footer
Paste and Clean
Paste content into footer section and remove any remaining empty lines for clean code structure
Creating HTML Files in Visual Studio Code
Create New File
Go to File > New File to start with a blank document
Save with HTML Extension
Save the file with .html extension to enable HTML syntax highlighting
Use Emmet Shortcut
Type exclamation point (!) and press Tab to generate basic HTML structure automatically
Clean Up Generated Code
Remove the outdated X-UA-Compatible meta tag that Visual Studio Code adds by default
Key Takeaways

