It is used to explain your code. Comments are ignored by browsers. They can be used on a single line, or traverse multiple lines and written within /*......*/
It is used to explain your code. Comments are ignored by browsers. They can be used on a single line, or traverse multiple lines and written within /*......*/
See this example:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Example of CSS Comments</title>
<style>
h1 {
color:#11a286;
/* This is a single-line comment */
/* This is multi
line
comments
*/
font-size:38px;
}
</style>
</head>
<body>
<h1>This is a Heading</h1>
<p>This is a paragraph</p>
</body>
</html>