TLDR Web Dev · ARTICLES & TUTORIALS

SEEKING AN ANSWER: WHY CAN'T HTML ALONE DO INCLUDES?

frontendmasters.com22 min read

Summary from the TLDR Web Dev newsletter

HTML doesn't have a native include feature similar to CSS' `@import` or JavaScript's `import`. There are numerous existing solutions for including HTML snippets, such as JavaScript, server-side directives, and static site generators, but none are pure HTML. This article explores the potential reasons for this, which include performance, security, and complexity concerns like circular dependencies.