Joke Collection Website - Talk about mood - How to annotate html, css, js code
How to annotate html, css, js code
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 ~
- Related articles
- Talk about walking in the wilderness and encountering dust.
- A sentence that understands human feelings very well.
- What if the child vomits everything he eats?
- No one will get sick.
- 30 classic sad love, talk about mood phrases.
- Reply to a post where you told me to quit smoking and drinking, but finally you quit.
- What does it mean to let the flowers bloom in front of the court and sit and watch the clouds roll in the sky?
- 2020 button space sad mood said: avoid this love, but can not open my thoughts of you.
- Inspirational talk about college entrance examination; Talk about bringing pictures to cheer yourself up.
- Beautiful sentences of campus time (59 selected sentences)