In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article mainly introduces what are the symbols of marking text notes in Html. It is very detailed and has a certain reference value. Friends who are interested must finish reading it!
HTML comments, we often have to do some HTML comments next to some code, this has many advantages, such as: easy to find, easy to compare, convenient for other programmers in the project team to understand your code, and it is convenient for you to understand and modify your own code in the future.
The beginning of HTML annotations
HTML comment syntax
Example
Home of script
Let's sort out a more comprehensive one for you.
1, 2, / / comment content (insert single-line comments in css or javascript) 3, / * comment content * / (insert multiline comments in css or javascript)
JavaScript comment syntax
/ / comment content / * comment content * /
CSS comment
As described in the HTML tutorial, comments also play an important role in CSS documents, which can help us remember the meaning of CSS, where to load in HTML documents, and so on.
Start with / * and end with * / for CSS comments
CSS comment syntax
/ * comment content * / example / *-text style starts-* / / * White 12-pixel text * / .dreamduwhite12px {color:white; font-size:12px;} / * Black 16-pixel text * / .dreamdublack16px {color:black; font-size:16px } / *-end of text style-* /
Example of JavaScript comment
Use two double diagonal bars to explain the line
[code]
/ / [xss_clean] ("www.jb51.net")
Annotate code blocks with diagonal stars (multilines)
/ * var jb51 = "www.jb51.net"; var jb51 = "du"; * / [html]
Tip: too many JavaScript comments will slow down the execution and loading speed of JavaScript, so you should remove JavaScript comments when publishing a website.
Tip: comment block (/ *... * /) can not have (/ * or * /, JavaScript regular expression may produce this kind of code), this will produce syntax errors, so I recommend you to use / / as the comment code, this tutorial will all use / / mark comments.
The above is all the contents of this article entitled "what are the symbols for marking text notes in Html?" Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.