If you want to use node.js and express to write a website, the head of the website is the same, the first page does not have footer, and there are several other pages, then my website view should be divided into several files, how do users render each page when clicking to switch?
It depends on your needs. You can
Head plus body plus footer or Head and footer
Use templates to configure required content, such as ejs, etc.
Or you can choose Single page application and use routing to control rendering.