The following codes show how to write PHP with HTML content on a web page.
Code:
<!DOCTYPE html>
<html>
<body>
<h1>A PHP page</h1>
<?php
echo "Hello World!";
ECHO "Welcome to PHP!<br>";
echo "Welcome to PHP!<br>";
EcHo "Welcome to PHP!<br>";
?>
</body>
</html>
Output:
Hello World!Welcome to PHP!
Welcome to PHP!
Welcome to PHP!