+ 1
title html
why the title of html can not display when i input coding php? is that right or i make a mistake?
4 ответов
+ 5
The bug isn't in the code...
There isn't really a bug, but a kind of limitation of code playground: anyway you use it on app, or in web browsers, in each case, the html page title will not display, as it normally is displayin as window/tab names: in app, there isn't such windows and or tab, and in browsers, the title of the page is corresponding to the web page of code playground, as it display your html/css/js ( php generated or not ) project inside, not as a standalone web page ^^
+ 3
Posting your code here or a link to it in the playground would be helpful.
but usually for a static title:
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<?php
echo "Some code here";
?>
</body>
</html>
Or a dynamic title:
<!DOCTYPE html>
<html>
<head>
<title><?php echo $page_title ?></title>
</head>
<body>
<?php
echo "Some code here";
?>
</body>
</html>
+ 1
we can help without first identifying the bug(problem) in the code first so lets see your code and then fix your bug. ok vella
- 1
<html>
<head>
<title>this is title</title>
</head>
<body>
<?php
echo "halo velia";
?>
</body>
</html>