How can I add my meta tags from another file? If I want to include the tags with the function "include_once" it includes the meta tags into the body content.
Thanks for your replying!
could do this with require_once()
. hope it helps.
meta.php
<?php
$meta = "<meta charset=\"utf-8\">";
?>
index.php
<?php require_once('meta.php'); ?>
<!doctype html>
<html>
<head>
<?php echo $meta; ?>
</head>
<body>
</body>
</html>