Similar Posts

Subscribe
Notify of
5 Answers
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
TheQ86
1 year ago

Framesets have not been used for almost 20 years. Today, headers or footers are either copied to any HTML page, reloaded by JavaScript, or what happens most frequently nowadays, frameworks/languages are used that support the browser – or server-side on any type of include commands, so that the code for the repeating elements must be only one time somewhere.

If you work with HTTP servers that support this, you can also use SSI/ESI (ServerSide Includes / EdgeSide Includes).

ChrisCat1, UserMod Light

For example, you can use the PHP function include: Add content to a page.
https://www.php.net/manual/en/function.include.php

You can thus store the logo, menu and footer in your own files and then integrate them into your respective pages.

Alternatively, you can also create a page with your basic structure, including logo, menu and footer, and then integrate the actual content of the respective ones.

ZaoDaDong
1 year ago

Per Copy & Paste

csxp123
1 year ago
Reply to  ZaoDaDong

Copy&Paste is one of the worst advice you can give to a beginner. Redundancy makes the entire project worse Wartbar and creates more problems on long term than that it is somehow helpful.