by Trainer Riad Thalji
In many cases, especially with large HTML code, we need to put some comments, so that we can remember what each part of code was intended for, if we or somebody else reviewed the code later, in other cases, we may enclose part of the code as a comment to prevent it from appearing in the browser for test reason.
To define a part of code as a comment, we need just to enclose it with the following brackets:
<!-- and -->
Let’s apply this to our code as the following:
When we open the page in the browser the sentence “Here I will list my training plan for this year” will not appear in the browser, because it is just a comment.
So the output will look like the following: