I am trying to create a table and give values to its rows but it is not working. Any hint or advice will be appreciated:
<!DOCTYPE html>
<html>
<head>
<style>
table,th,td
{
border:1px solid black;
border-collapse:collapse;
}
th,td
{
padding:5px;
}
</style>
</head>
<?php
$subject = "ISIT307";
$location = "3.123";
$time = "4:30";
<table style="width:300px">
<tr>
<th>Subject</th>
<th>location</th>
<th>time</th>
</tr>
<tr>
<td>$subject</td>
<td>$location</td>
<td>$time</td>
</tr>
</table>
?>
</body>
</html>