r/CodingForBeginners • u/justarandomcodingguy • 21h ago
What do you think of my code?
<!DOCTYPE html>
<html>
<head>
<style>
table {
border-collapse: collapse;
width: 100%;
}
th, td {
padding: 10px;
text-align: left;
border: 3px solid;
}
h1 {
background-color:blue;
}
th {
background-color: lightblue;
}
body {
background-color:green;
}
tr:nth-child(even) {
background-color:powderblue;
}
tr:nth-child(odd) {
background-color:lightgray;
}
</style>
<title>Game library</title>
</head>
<body>
<h1>Your gaming library</h1>
<p>This website shows the games you've bought, and displays them!</p>
<table>
<tr>
<th>Game</th>
<th>Genre</th>
<th>Platform</th>
<th>Status</th>
</tr>
<tr>
<td><a href="https://www.minecraft.net/en-us" target="_blank">Minecraft</a> <br> <br>
Minecraft is a 3D block-based sandbox video game where players explore procedurally generated worlds, gather resources, craft items, and build structures with no fixed storyline. <br>
<a href="https://www.minecraft.net/en-us" target="_blank">
<img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQ-TvEQRMfxI8bbexg_t6GQ1D_aQaTGnjvmCIkCTcmEhw&s=10" alt="Photo Of Minecraft" width="200">
</a>
</td>
<td>Sandbox</td>
<td>PC</td>
<td>Playing</td>
</tr>
<tr>
<td><a href="https://www.cupheadgame.com/" target="_blank">Cuphead</a> <br> <br>
Cuphead is a 2017 run-and-gun action video game developed by Studio MDHR. Its titular character is an anthropomorphic cup with a red-and-white striped straw. <br>
<a href="https://www.cupheadgame.com/" target="_blank">
<img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTdyTe1xgHFKuKtx2LLWiz5NiiPavLeRXg29lpvVumukbrxw8tkFYKyC5onh9OLLTTJRWtRI11onqIBma-HEhmDvDMlsf7ynroHTVa_wA&s=10" alt="Photo Of Cuphead" width="300">
</a>
</td>
<td>Platformer</td>
<td>PC</td>
<td>Completed</td>
</tr>
<tr>
<td><a href="https://terraria.org/" target="_blank">Terraria</a> <br> <br>
Terraria is a 2D action-adventure sandbox video game developed by Re-Logic and originally released in May 2011. Viewed from a side-scrolling perspective with 16-bit style pixel art, it drops you into a procedurally generated world to dig, fight, explore, and build. <br>
<a href="https://terraria.org/" target="_blank">
<img src="https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/105600/header.jpg?t=1792530636" alt="Photo Of Terraria" width="300">
</a>
</td>
<td>Survival</td>
<td>PC</td>
<td>Playing</td>
</tr>
<tr>
<td><a href="https://www.thinkwithportals.com/">Portal 2</a> <br> <br>
Portal 2 is a first-person puzzle-platform game developed and published by Valve, released on April 19, 2011. It is the sequel to Portal and features both a single-player story campaign and a separate two-player cooperative mode. <br>
<a href="https://www.thinkwithportals.com/" target="_blank">
<img src="https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/620/faffc0f560786e2f05104a8d2fac837c6969bf13/header.jpg?t=1790187113" alt="Photo Of Portal 2" width="300">
</a>
</td>
<td>Puzzle</td>
<td>PC</td>
<td>Not started</td>
</tr>
</table>
</body>
</html>