Tags for this article: basics, commentary, html, learning, tutorial
HTML includes the possibility to enter commentary anywhere you please inside a HTML file. The commentary is then ignored by the web browsers and not shown in the presentation. Commentaries make sense to give internal information regarding the author and date, or to make internal notices next to certain areas of text, or to comment on which HTML tags were used.
An Example:
<h1>Welcome!</h1>
<!– Commentary: the above element is a heading –>
<A lot of text</p>
<!–and that is a multi-lined commentary on the text with <p>…</p>
The last line of commentary –>
Explanation:
Commentaries are entered using the <!– order of characters. Afterwards one can enter as much commentary as they desire. You can also notate HTML elements inside a commentary. Everything in between the introductory character combination and the ending –> combination will be ignored by the browser. However, specially marked commentaries, such as so-called conditional comments, are interpreted by Internet Explorer.
Take Note:
The character combination – - already starts and ends the commentary. When you strongly wish to accentuate a commentary and wish to use special characters as a dividing line, then it is best not to use the minus sign -, and instead to use another character, such as the equal sign = or the star *.
While tinkering with your HTML file you will inevitably experiment with and test many different variants. Sometimes it is helpful to not erase previous solutions with a new solution before testing, and instead save the old solution inside a commentary. This area is then deactivated for the browser, but can also easily be reactivated. Then you don’t have to get upset when you overwrite something that was actually better than what you just replaced it with.
Credits
You should pay attention to the following tips if you wish to produce HTML files for the web.
- Declare yourself responsible as the website producer:
Make sure to note who produced the website. Users have the right to know who is responsible for producing a website.
- Display the date of production:
Write the date of production in a suitable place in the text. This is especially important with information that quickly becomes obsolete. For example, a price list for PC hardware that hasn’t been updated for over two years, will quickly reveal its usefulness with a clearly displayed date of production.
- Declare your copyrights:
Declare your copyrights or clearly state what can and cannot be done with your text. You can hardly forbid the copying of text, but you can stop the further dissemination of your text even with changes made to it. Be sure to also specify your copyrights for all graphics, logos etc.
- Allow for the possibility of feedback:
You could include your email or a feedback form, for example.