<!DOCTYPE html> <html lang="en" xmlns="http://www.w3.org/1999/xhtml"> <!-- Class examples from CS 328 - Week 9 Lecture 1 by: Sharon Tuttle last modified: 2025-03-27 you can run this using the URL: https://nrs-projects.humboldt.edu/~st10/s25cs328/328lect09-1/328lect09-1.php note: validated by: * getting an .xhtml version of the executed result by running the following from nrs-projects (while in the same directory as this file): php 328lect09-1.php > 328lect09-1.xhtml * validating that .xhtml version using one of our usual validator links --> <head> <title> 1st web php </title> <meta charset="utf-8" /> <link href="https://nrs-projects.humboldt.edu/~st10/styles/normalize.css" type="text/css" rel="stylesheet" /> </head> <body> <h1> Our first PHP </h1> <p> Today's date: <?= date("Y.m.d") ?> </p> <?php $name = "Ginger"; $quant = 40.5; $new_class = "centered"; ?> <p class="<?= $new_class ?>"> The name for today is <?= $name ?>, and the quantity is <?= $quant ?> </p> <footer> <hr /> <p> Validate by pasting .xhtml copy's URL into<br /> <a href="https://validator.w3.org/nu"> https://validator.w3.org/nu </a> or <a href="https://html5.validator.nu/"> https://html5.validator.nu/ </a> </p> </footer> </body> </html>