It’s a “Hello, World” code snippet. I have tried to run it using XAMPP, and I am using Dreamweaver to write the code. Upon execution, the page does not display “Hello, World!”. What would have went wrong?
<!DOCTYPE html>
<head>
<title>Hello World | Hello and Welcome</title>
</head>
<body>
<?php
Echo "Hello, World!";
?>
</body>
</html>
You are trying to execute PHP code on an HTML page. All PHP files should have the .php extension (implied from the OP’s comments). Change your filename.
PHP handlers don’t work in .html pages for efficiency reasons. When you use .html instead of .php, you are telling the server not to embed PHP in that page, to save server resources.