Css comment

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


Connect with us

facebook logo
Email : contact@amcodestar.com
© Copyright amcodestar.com 2020 - 2023 All Rights Reserved.
About us     term and condition      comment policy
DMCA.com Protection Status