Comments for HTML, CSS, ASP, and other languages

Source: Internet
Author: User
Tags html comment

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.