day 3 classwork.

This commit is contained in:
Joshua Ashton
2025-01-27 20:21:02 -07:00
parent cad0d444ad
commit e8191f2849
3 changed files with 63 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
<!doctype html>
<html lang="en">
<head>
<title>Day 3</title>
<style>
body {
background-color: #DADD1E;
}
img {
width: 50%;
}
</style>
</head>
<body>
<?php echo '<h1>Day 3</h1>'; ?>
<ul>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ul>
<?php echo '<img src="https://images.unsplash.com/photo-1448375240586-882707db888b?fm=jpg&q=60&w=3000&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8Mnx8Zm9yZXN0fGVufDB8fDB8fHww" />'; ?>
</body>
</html>
+20
View File
@@ -0,0 +1,20 @@
<!doctype html>
<html lang="en">
<head>
<title>Exercise #1</title>
</head>
<body>
<h1>Primary heading</h1>
<?php
echo '<p>Lorem ipsum</p>';
echo '<h1>Another One</h1>';
?>
<p>dorem something</p>
<?php echo '<h2>Smaller One</h2>'; ?>
<img src="https://images.unsplash.com/photo-1448375240586-882707db888b?fm=jpg&q=60&w=3000&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8Mnx8Zm9yZXN0fGVufDB8fDB8fHww" />
</body>
</html>
+16
View File
@@ -0,0 +1,16 @@
<!doctype html>
<html lang="en">
<head>
<title>Exercise #2</title
</head>
<body>
<?php
$x = 'red';
echo '<p style="color: ' . $x . '">Some words here</p>';
?>
</body>
</html>