Hello guys
I want to create something like SEO link i have website with three pages, but the header is the same
header.php
<!DOCTYPE html>
<html>
<head>
<style>
.active{
background-color: #365214;
}
ul{
display: inline;
}
li{
display: inline;
}
</style>
<title></title>
</head>
<body>
<ul>
<li><a class="active" href="index.php">HOME</a></li>
<li><a href="a.php">ABOUT</a></li>
<li><a href="s.php">SERVICES</a></li>
<li><a href="c.php">CONTACT</a></li>
</ul>
footer.php
</body>
</html>
index.php
<?php
include("header.php");
include("home.php");
include("footer.php");
?>
what I need is when user click on any link on header it changed the title of page dynamically
<title></title>
and applying .active class to current page link.