How can I add a different title, keyword and description in every page’s <head> of my simple php website dynamically?
E.g
<title>this is title</title> <meta name='keywords' content='keyword1, keyword2' /> <meta name='description' content='this is description' />
You can create method to return title for current page, depending on where the user is, and then use it like this.
same with the keywords
The implementation will depend on how you navigate on the website. For example, if you have only
index.php, and choose content by$_GET['page'], you can have something like thisor you can make it all in one like
and then again do something like this