This guide shows both **HTML (static)** and **PHP (server-side)** examples.
---
HTML is the simplest form of web content. It runs directly in the browser without a server-side language.
###
```html
Code: Select all
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Hello World</title>
</head>
<body>
<h1>Hello World</h1>
<p>This is my first HTML page.</p>
</body>
</html>###
* The browser reads the file directly
* No server processing is needed
* Everything is displayed as written
### ▶ How to run it:
1. Save the file as `index.html`
2. Open it in your browser (double click or drag into browser)
---
PHP runs on a server and generates HTML dynamically before sending it to the browser.
###
```php
Code: Select all
<?php
// Simple Hello World example in PHP
echo "Hello World";
?>###
* The server e…login to view the rest of this post