CSS Comments

CSS Tutorial


Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2298

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2302

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2308

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2312

Notice: Trying to get property 'ID' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2316

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2320

Notice: Trying to get property 'ID' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2334

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2298

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2302

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2308

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2312

Notice: Trying to get property 'ID' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2316

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2320

Notice: Trying to get property 'ID' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2334

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2298

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2302

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2308

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2312

Notice: Trying to get property 'ID' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2316

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2320

Notice: Trying to get property 'ID' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2334

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2298

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2302

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2308

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2312

Notice: Trying to get property 'ID' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2316

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2320

Notice: Trying to get property 'ID' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2334

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2298

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2302

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2308

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2312

Notice: Trying to get property 'ID' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2316

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2320

Notice: Trying to get property 'ID' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2334

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2298

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2302

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2308

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2312

Notice: Trying to get property 'ID' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2316

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2320

Notice: Trying to get property 'ID' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2334

CSS Advanced


Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2298

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2302

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2308

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2312

Notice: Trying to get property 'ID' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2316

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2320

Notice: Trying to get property 'ID' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2334

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2298

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2302

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2308

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2312

Notice: Trying to get property 'ID' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2316

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2320

Notice: Trying to get property 'ID' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2334

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2298

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2302

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2308

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2312

Notice: Trying to get property 'ID' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2316

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2320

Notice: Trying to get property 'ID' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2334

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2298

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2302

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2308

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2312

Notice: Trying to get property 'ID' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2316

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2320

Notice: Trying to get property 'ID' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2334

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2298

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2302

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2308

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2312

Notice: Trying to get property 'ID' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2316

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2320

Notice: Trying to get property 'ID' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2334

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2298

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2302

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2308

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2312

Notice: Trying to get property 'ID' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2316

Notice: Trying to get property 'post_status' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2320

Notice: Trying to get property 'ID' of non-object in /home/u212091429/domains/mydevhelp.com/public_html/wp-admin/includes/template.php on line 2334

CSS Responsive

CSS Grid

CSS Comments

CSS comments are not shown in the browser, but they help document the source code.

Comments help to explain the code and are useful while editing the source code at a later date

Comments are ignored by browsers.

A CSS comment is written within the:

start /* This is comment */ end

<!DOCTYPE html>
<html>
<head>
<style>
/* This is comment */
p {
color: red; /* Set text color to red */
}
</style>
</head>
<body>
<p>Hello World!</p>
<p>This paragraph is styled with CSS.</p>
<p>CSS comments are not shown in the output.</p>
</body>
</html>

HTML and CSS Comments

In the below example, we use a combination of HTML and CSS comments:

<!DOCTYPE html>
<html>
<head>
<style>
/* This is comment */
p {
color: red; /* Set text color to red */
}
</style>
</head>
<body>
<p>Hello World!</p>
<p>This paragraph is styled with CSS.</p>

<!– These paragraphs will be red –>

<p>CSS comments are not shown in the output.</p>
</body>
</html>


Notice: ob_end_flush(): failed to send buffer of zlib output compression (1) in /home/u212091429/domains/mydevhelp.com/public_html/wp-includes/functions.php on line 5420

Notice: ob_end_flush(): failed to send buffer of zlib output compression (1) in /home/u212091429/domains/mydevhelp.com/public_html/wp-includes/functions.php on line 5420