Making Web Pages

.html A normal web page consists of a lot of lines of HTML that never change their behavior. If you want the pages to do interesting things, you can use PHP to print HTML to the page.
.php If you name your webpage something.php instead of something.html, all the HTML in your page works exactly as it did before. But in addition you can insert PHP code into your page.
<?php ?> You can put PHP into your web page by enclosing it in <?php and ?>. Everything between these two symbols is handled specially. The instructions they enclose are run. If these instructions cause anything to be printed out, this output becomes part of the web page. The following two lines do exactly the same thing:
<b>this is bold</b>
<?php echo "<b>this is bold</b>"; ?>
<?= ?> If you just want to add something to the page, you can use the short forms <?= and ?> which simply echoes the result to the web page. The following two lines do exactly the same thing:
<b>this is bold</b>
<?= "<b>this is bold</b>" ?>

Home