Joke Collection Website - Talk about mood - How to annotate html, css, js code

How to annotate html, css, js code

Let's talk about the comment code of html first. The format of html comments is as follows:

Many aspects of html comments are to explain a paragraph, which is not only convenient for you to maintain in the future, but also gives other colleagues a feeling of "pleasing to the eye" and is convenient for managing code in the future. As shown in the figure, each module has comments, which looks much more comfortable.

Of course, it should be noted that although the comment format of html is

Let's talk about css comment code first; Css comments are in this format:/* Your css */, which is also used for explanation in most cases, as shown in the figure;

Of course, comments can also be made in css code, indicating that this code is temporarily "blocked" for use; As shown in the figure;

Say js's comments first; Js single-line comments are in this format://your js code; Can be used to explain the purpose, function and so on of your current code ~; As shown in the figure;

Js can also comment multiple lines of code in the same format as css comments:/* Your js *;; ; As shown in the figure, comment out the whole temporarily unused code ~