# freeCodeCamp Challenge Guide: Uncomment HTML

**URL:** <https://forum.freecodecamp.org/t/freecodecamp-challenge-guide-uncomment-html/18329>\
**Category:** freeCodeCamp Contributors\
**Tags:** guide\
**Created:** [July 7, 2016, 11:00pm UTC](https://forum.freecodecamp.org/t/freecodecamp-challenge-guide-uncomment-html/18329 "2016-07-07T23:00:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![camperbot](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/camperbot/32/18364_2.png) [@camperbot](https://forum.freecodecamp.org/u/camperbot)\
**Post date:** [July 7, 2016, 11:00pm UTC](https://forum.freecodecamp.org/t/freecodecamp-challenge-guide-uncomment-html/18329/1 "2016-07-07T23:00:34Z")

</div>

# [Uncomment HTML](https://www.freecodecamp.org/learn/responsive-web-design/basic-html-and-html5/uncomment-html)

* * *

## Problem Explanation

The comment topic is often a bit confusing in the beginning.

Let’s look at an example:

```auto
<!-- This is a commented block. 
It doesn't matter how long it is, if it has <h1>HTML elements</h1> in it or if it develops
into a
few lines,
everything between the first less than sign followed by exclamation mark and the last greater than sign is commented out -->

```

You can use comments in-line too: `<!-- Note about html goes here so you can remember why this is here -->` and here it is!

The only thing to consider is that when you see this set of characters `<!--` everything from there is commented out until you see this `-->`; these are the opening and closing tag of an HTML element!

**UNCOMMENT**  
Uncomment means to take things out from the comment text: to uncomment the h3 element of the following sentence (which is all commented out):

```auto
<!-- <h1>Comment header</h1> <h3>Comment subtle</h3> <article>I am the text of the comment</article> -->

```

is as easy as:

```auto
<!-- <h1>Comment header</h1> --> <h3>Comment subtle</h3> <!-- <article>I am the text of the comment</article> -->

```

Notice how a closing comment tag (`-->`) has been added before the h3 HTML element to match the opening comment tag at the start of the sentence? We also added an opening comment tag (`<!--`) after it to match the closing tag at the end; in this way you have created two inline comments (one before the h3 element and one after).

If you want to uncomment everything is even easier:

```auto
<h1>Comment header</h1> <h3>Comment subtle</h3> <article>I am the text of the comment</article>

```

Just remove the opening and closing tags of the comment.

Commments are very valuable because it helps you remember the purpose of a section of code. You can use a many comments as you like. In fact, comments are a sign of careful and thoughtful coding.

---

<div class="post-metadata">

**Author:** ![mb438](https://avatars.discourse-cdn.com/v4/letter/m/85f322/32.png) [@mb438](https://forum.freecodecamp.org/u/mb438)\
**Post date:** [July 15, 2017, 5:23am UTC](https://forum.freecodecamp.org/t/freecodecamp-challenge-guide-uncomment-html/18329/2 "2017-07-15T05:23:37Z")

</div>

I’m stuck on this part of the uncomment HTML Be sure to delete all trailing comment tags, i.e. --\>.

---

<div class="post-metadata">

**Author:** ![rugano](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/rugano/32/93045_2.png) [@rugano](https://forum.freecodecamp.org/u/rugano)\
**Post date:** [August 5, 2017, 11:22am UTC](https://forum.freecodecamp.org/t/freecodecamp-challenge-guide-uncomment-html/18329/3 "2017-08-05T11:22:47Z")

</div>

Hello @mb438. @camperbot simply means that you should delete both the end and start of the comment.

delete:

--\> and finally \<!--

---

<div class="post-metadata">

**Author:** ![anon52159105](https://avatars.discourse-cdn.com/v4/letter/a/45deac/32.png) [@anon52159105](https://forum.freecodecamp.org/u/anon52159105)\
**Post date:** [August 6, 2017, 10:32pm UTC](https://forum.freecodecamp.org/t/freecodecamp-challenge-guide-uncomment-html/18329/4 "2017-08-06T22:32:03Z")

</div>

Closed on August 6, 2017, 10:32pm UTC



---

<div class="post-metadata">

**Author:** ![camperbot](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/camperbot/32/18364_2.png) [@camperbot](https://forum.freecodecamp.org/u/camperbot)\
**Post date:** [August 10, 2019, 1:22am UTC](https://forum.freecodecamp.org/t/freecodecamp-challenge-guide-uncomment-html/18329/5 "2019-08-10T01:22:11Z")

</div>

Opened on August 10, 2019, 1:22am UTC



---

<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 7, 2025, 12:00pm UTC](https://forum.freecodecamp.org/t/freecodecamp-challenge-guide-uncomment-html/18329/6 "2025-01-07T12:00:15Z")

</div>

Closed on January 7, 2025, 12:00pm UTC


