Basics of Internet   Starting with HTML   Nested Lists and Tables   HTML Forms   HTML Media

Chapter - 4
File Path System

The Most Basic Truth

A website is actually a bunch of files (HTML, CSS, images, etc.) organized in folders—not just one file. To make everything show up on a page, HTML needs precise instructions on where to find each file.

Relative vs. Absolute Paths

  1. Relative Paths (for Your Own Files)

  2. Absolute Paths (for External Files)

Operating System Differences

HTML Boilerplate

Why use Boilerplate?

Browsers expect every web page to have a predictable, standard structure so they can display it correctly. The boilerplate tells browsers what rules to follow, what language the page is in, and helps make the website accessible and mobile-friendly.

A Modern Boilerplate:

boilerplatecode

Multipage Website Basics

Grouping and Labeling Elements for Design

  1. <div>: Group Elements into Boxes
  2. class and id: Naming and Targeting
  3. <span>: Highlight Part of a Line

HTML Semantic Layout Tags

Best Practices and "Why"

More References: