# Comment out HTML

**URL:** <https://forum.freecodecamp.org/t/comment-out-html/144538>\
**Category:** General\
**Created:** [August 29, 2017, 12:22pm UTC](https://forum.freecodecamp.org/t/comment-out-html/144538 "2017-08-29T12:22:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sang](https://avatars.discourse-cdn.com/v4/letter/s/9d8465/32.png) [@sang](https://forum.freecodecamp.org/u/sang)\
**Post date:** [August 29, 2017, 12:22pm UTC](https://forum.freecodecamp.org/t/comment-out-html/144538/1 "2017-08-29T12:22:07Z")

</div>

**Tell us what’s happening:**

**Your code so far**

```auto
<!--Sun-->
<h1>Hello World</h1>

<h2>CatPhotoApp</h2>

<p>Hello Paragraph</p>
-->Sun<!--

```

**Your browser information:**

Your Browser User Agent is: `Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36`.

**Link to the challenge:**  
[https://www.freecodecamp.org/challenges/comment-out-html](https://www.freecodecamp.org/challenges/comment-out-html)

---

<div class="post-metadata">

**Author:** ![sonimadhuri](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/sonimadhuri/32/66596_2.png) [@sonimadhuri](https://forum.freecodecamp.org/u/sonimadhuri)\
**Post date:** [August 29, 2017, 12:42pm UTC](https://forum.freecodecamp.org/t/comment-out-html/144538/2 "2017-08-29T12:42:54Z")

</div>

you need to comment out `h1` and `p` element .you could do this by wrapping those elements within `<!-- -->`

---

<div class="post-metadata">

**Author:** ![Nesight](https://avatars.discourse-cdn.com/v4/letter/n/ec9cab/32.png) [@Nesight](https://forum.freecodecamp.org/u/Nesight)\
**Post date:** [August 29, 2017, 1:42pm UTC](https://forum.freecodecamp.org/t/comment-out-html/144538/3 "2017-08-29T13:42:09Z")

</div>

`-->Sun<!--` is not correct. If you want to comment something in HTML, you have to use `<!-- something (everything you want to comment) -->`

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [January 17, 2021, 8:41pm UTC](https://forum.freecodecamp.org/t/comment-out-html/144538/4 "2021-01-17T20:41:13Z")

</div>

Closed on January 17, 2021, 8:41pm UTC


