You can’t solve a problem without having a basic understanding about it. Likewise, you cannot create a theme without understanding its basic structure. You need to fully understand the anatomy of the WordPress theme.
A standard WordPress theme consists of a header, sidebar(s), a loop, and a footer section.
Anatomy Of A Theme explores the structure of a WordPress theme, breaking down its constituent files and their collaborative role in rendering a WordPress website. It also outlines the foundational knowledge required to comprehend theme anatomy.
For further reading, check out the Understanding the Anatomy of a Basic WordPress Theme by Theme Spotlight.
References