Home > Article > Web Front-end > How to add comment box in css
The / and / symbols are required to add comment boxes in CSS. The steps are as follows: Use /* to start the comment box and add comment content. Use */ to end the comment box
How to add a comment box in CSS?
To add a comment box in CSS, you need to use the /*
and */
symbols. They are used to comment blocks or single lines of code, preventing the browser from parsing them.
Steps:
:
Before the line of code to be commented, Enter the /* symbols.
and
*/ symbols. Annotation content can contain text, descriptions, and notes.
:
Enter the */ symbols to end the comment box.
Example:
<code class="css">/* 这是注释框 */ /* 注释单行代码 */ padding: 10px; /* 注释内容 */</code>
Note:
The above is the detailed content of How to add comment box in css. For more information, please follow other related articles on the PHP Chinese website!