In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail what symbols are marked and annotated in Html. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.
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
Exampl
Home of script
Let's sort out a more comprehensive one for you.
1 、
2. / / comment content (insert a single-line comment in css or javascript)
3. / * comment content * / (insert multiline comments in css or javascript)
JavaScript comment
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
Copy the code
The code is as follows:
/ * comment content * / example / *-start of text style-* / / * 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)
/ *
Varjb51= "www.jb51.net"
Varjb51= "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.
This is the end of this article on "what are the markup text annotation symbols in Html". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it out for more people to see.
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.