Document on creating web pages of kangfire website construction Institute (bkjia.com)In the process of creating a webpage, you often need to comment on the webpage to facilitate future modification or collaborative development. The webpage structure is clear and the readability is enhanced. The following describes several common annotation methods:
I. HTML annotation Method
<! -- Html comment:Www.bkjia.com START --> |
Content
<! -- Html comment: www.bkjia.com END --> |
Ii. CSS comments
<Style type = "text/css"> /* Css comments: www.bkjia.com */ </Style> |
This method is also used to annotate a css style sheet file.
Iii. JS comments
<Script type = "text/javascript"> // Js comments: www.bkjia.com </Script> |
Iv. ASP comments
<% Set xml = Server. CreateObject ("Microsoft. XMLDOM ") Set fs1_xml.doc umentElement. childNodes 'Asp comments www.bkjia.com %> |
Other annotation methods:
For example, vbs uses 'annotation or REM annotation to comment content. PHP supports C, C ++, and Unix-style Annotations: /* C, C ++ multi-line comment */ // C ++ style single line comment # Unix style single line comment |