Hi, I am new to programming and I have an error in this code and I can’t fix it. The instructions say: Commenting allows you to leave messages without affecting the browser display. It also allows you to make the code inactive. A comment in HTML starts with . For example, the comment contains the text TODO: Remove h1.
Add a comment on element p with this text:
TODO: Add link to cat pictures.
But when I do, it gives error, and I have tried in different ways, I have put it in the middle of the tags
, also below p and above, but it doesn’t work. Anyone knows why?
<html>
<body>
<h1>CatPhotoApp</h1>
<h2>Cat Photos</h2>
<!-- User Editable Region -->
<!-- TODO: Add link to cat photos -->
<p></p>
<!-- User Editable Region -->
</body>
</html>