CSS Comment | Part-4 | CSS Tutorial For Beginners | Tutorial007

preview_player
Показать описание
Welcome to Tutorial007 and in this video, we will learn about the comment in class. So stay tuned and watch how we can comment in css.

#tutorial007 #css #commentInCss #cssTutorial #cssInHindi

CSS uses the same "block comment" syntax as the C-like languages - you start a comment with /*, and end it with */.
However, CSS is missing the "line comment" syntax that those languages have, where everything from // to the end of the line is commented out.
People have asked for this syntax to be added repeatedly, but unfortunately our hands are mostly tied - CSS minifiers don't know about line comments, so if we added it and the minifier removed all the line breaks (as they tend to do), the line comment would accidentally comment out the entire rest of your stylesheet!
That said, CSS does actually already allow you to use //, after a fashion. It's not quite a line comment, but a next construct comment.
That is, whenever you use //, the next CSS construct - either declaration or block - will be "commented out". For example:
.foo {
width: auto;
//height: 500px;
background: green;
}

css single line comment

css multi line comment

what type of css is used to format a single website page?

how do you add a background color for all h1 elements?

which property is used to change the background color?

css comment section

which css property is used to change the text color of an element?

which of the following selector matches all elements of a type?

Stay tuned to #tutorial007 and learn HTML,CSS,Javascript,Java,PL/SQL,Java,Jquery,MVC,web Development and many more..

SUBSCRIBE to our YouTube channel, visit to:

*********************************************
Follow Tutorial007 on Facebook

*********************************************
Follow Tutorial007 on Instagram

**********************************************
Subscribe Tutorial007 on YouTube
**********************************************
Рекомендации по теме
Комментарии
Автор

Mashallah... I think ur expert.... This is the series who can explain in detail.... Thank so much sir... I complete html and learning css on ur channel for free.... Thank a lot... Lots of dua, 😇

afiasaba
Автор

Save k liye .html ka hi use krna hoga na ham ko

durveshpal
Автор

Sirr jo css ki file banegi vo aise banege jaise html ki banti

durveshpal
Автор

Hello, sir mera background color nhi ho rha.

snehasingh-gsfj
Автор

Bhai mere notpad par RUN --> "Launch in Crome" wala option aata hi nahi.

rajujadhav
Автор

Internal style sheet me comment kise likhna hai

patelrajkumarnareshkumar
Автор

but aapne bola ki most prefer to ENTERNAL STYLE SHEET not EXTERNAL STYLE SHEET

suniljaiswal
Автор

but aap to yaha pe EXTERNAL STYLE SHEET use kar rahe ho

suniljaiswal
join shbcf.ru