Topic: Use {title} in different code

Hello! How can I use the text into {title} in different code.
For example, I need use various {title} in <HEAD> of my page.


news.php
<?php
include("news/show_news.php");
?>

Re: Use {title} in different code

Maksss wrote:

Hello! How can I use the text into {title} in different code.
For example, I need use various {title} in <HEAD> of my page.


news.php
<?php
include("news/show_news.php");
?>

Hey!

Do you mean putting a different code within a HTML document?
If so you simply wrap that piece of code with tags, eg.
<html> codeinhtml
            <php> codeinphp </php>
</html>

3 (edited by CorbinBranch 2021-01-22 10:07:27)

Re: Use {title} in different code

The <title> tag defines the title of the document. The title must be text-only, and it is shown in the browser's title bar or in the page's tab. The <title> tag is required in HTML documents!

visit here