Will search engines be able to find meta tag information, an echo from a PHP script?

I am thinking of doing something like:

<?php
  $title = "Title of current page";
  include("head.php");
?>

<h1>The stuff that goes inside the BODY tag</h1>

<?php
  include("foot.php");
?>

Keyword meta tags and descriptions will be displayed within the head.php script. If I do this, can search engines read keywords and descriptions? And if so, how much will it affect the rank of the search engine?

+3
source share
2 answers

Search engines do not know about your server side. If you open your page in a browser and select "View Source", you will see what search engines see exactly. This is what you want to consider, not your PHP source code.

+6
source

? ? , ?

+1

Source: https://habr.com/ru/post/1796367/


All Articles