Is it possible to create a separate header file, then link to the pages?

Is it possible to create header, footer, etc in a separate file, and then simply connect to the pages with a few lines below if you need to edit each page separately (WITHOUT using CMS).

P. S: this is possible to implement in Wordpress bringing in .php file, and then just plug it in 1 line.
(For example to create header.php and then connect via )
April 7th 20 at 15:44
1 answer
April 7th 20 at 15:46
Solution
<? include 'header.php'; ?>

Find more questions by tags PHP