Okay, so I had this idea the other day, watching the games, you know? Keeping track of who’s winning what felt like a chore. The official sites are fine, but sometimes cluttered, or I just wanted a simple view of the medal counts. So, I thought, why not try and build my own little scorecard thingy? Just a simple page to show the medal standings.

Getting Started
First thing, I grabbed my laptop. Didn’t want anything too fancy. Just needed something basic to show a list of countries and their gold, silver, and bronze medals. I figured plain old HTML would be enough for the structure. No need for complicated frameworks for this little project.
I started by creating a basic HTML file. Just the standard stuff, head, body, you know. Inside the body, I decided a table would probably be the clearest way to show the data. So, I put in a `
`) for Rank, Country, Gold, Silver, Bronze, and maybe a Total count. Seemed logical.
Then came the main part, the table body (` |
---|
`) matching the headers: one for the rank, one for the country name (maybe with a little flag icon placeholder, though getting actual flags might be tricky later), and cells for the medal counts.
Making up some data… Now, where to get the scores? For this practice run, I wasn’t about to scrape live data or anything complex. That’s a whole other headache. So, I just made some up! I created a few rows manually in the HTML.
I typed these directly into the ` | ` tags. I also calculated the total medals for each and put that in the ‘Total’ cell. I had to manually figure out the rank for now too.
Adding a Bit of StyleOkay, the raw HTML table looked pretty bland. Functional, yes, but ugly. So, I decided to add a little bit of CSS. Nothing crazy. I created a simple `*` file and linked it in the HTML head. I added some basic styling:
It wasn’t going to win any design awards, but it made the scorecard much easier to read. Thinking About Updates (The Hard Part)So, I had a static table with made-up data. Looked okay. But the whole point of a scorecard is that it updates, right? This is where it gets trickier. If I wanted real data, I’d need to fetch it from somewhere. And then I’d need some JavaScript to update the table automatically instead of me typing it in. I thought about how I’d do that. Maybe have the data in a separate structure (like a JavaScript array of objects). Then write a script to:
|