Use this tag to comment single and multiple text / code lines in css, it is not displayed to the user in the web page. That is why the developer uses the comment.
Syntax
/*………*/
Example : 1
<!DOCTYPE html> <html> <head> <title></title> <style> p { color: red; /* single-line comment */ } /*multi-line comment multi-line comment */ </style> </head> <body> <p>paragraph 1 </p> </body> </html> |
Output
paragraph 1