Ada’s Journal
Comments, eh? So it’s basically a secret note to myself that the browser pretends doesn’t exist. Professor Babbage would probably call this a “documentation strategy” — I’m just going to call it my personal HTML sticky note.
I’ve been staring at this lesson thinking about how many times I’ll probably use comments to remind myself what on earth I was doing when I wrote some chunk of code. “TODO: Figure out why this doesn’t work” is going to become my most frequent comment, I can already tell.
The syntax looks straightforward enough. <!-- to start, --> to end. Wrap anything in between, and it’s like the code equivalent of whispering to myself. “Psst, future Ada, here’s what I was thinking…”
Ada’s Code
index.html
<html>
<body>
<h1>CatPhotoApp</h1>
<h2>Cat Photos</h2>
<!-- TODO: Add link to cat photos -->
<p>Everyone loves cute cats online!</p>
</body>
</html>
Professor Babbage’s Review
Comment is correctly placed and formatted. Your journal entry shows you understand the purpose — documentation for future reference.
Grade: Good
What Went Well
- Comment syntax is correct
- Proper placement above the p element
- Exact text as specified
Room for Improvement
- None.