I completely agree with @ilenia ’ s answer.
Let’s try to show off an example of how an HTML comment tag works:
If I’ll like to create a <span>
tag, I’d probably write down something like this:
<span> This is a span tag </span>
Then, if I’d like to write down a comment line, I’d probably do so by typing:
<!--- This is a comment line -->
Computers, while reading programming languages, are designed to ignore whatever it’s inside the comment clausules (that means, whatever is between <!---
and --->
for the HTML language).
But, what happens if I want to comment something more than just a line? What if I want to comment 3 lines, for example? Well, that could be accomplished the same way:
<!---
This line has been commented
This line has also been commented
Oh, wait: there are more lines been commented! Wow!
--->
Now, what if I want to comment some code that I just wrote?
Well, as we explained before, it turns out, computers will ignore everything’s that fits inside the comment clausules, so we can have our previous <span>
tags commented as well:
The following <span>
tag:
<span> This is a span tag </span>
Can be commented like this:
<!--- This is the begining of a comment line
<span> This is a span tag </span>
This is the end of a comment line -->
This way, my span tag has been ignored by the computer, thus, not showing it off in the webpage.
Now go out and try to solve your excersive, which may include some of the concepts that has been explained here, or the combination of more than just one concept.
Best of luck and happy coding!