answersLogoWhite

0


Best Answer

No, the CSS specifications explicitly state that CSS comments cannot be nested. If you try to do this, then your nested comments closing delimiter */ will close out the larger comment and anything after it will be rendered by the web browser. When comments are nested, the nested comment's beginning delimiter /* is ignored yet the closing */ is not.

User Avatar

Wiki User

βˆ™ 13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Can css comments be nested
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you create a drop down menu in CSS?

To create a drop down menu in CSS, use a series of nested


Why nested comments are not allowed?

/*This program is to calculate /*simple interest */ version 1.0*/ Anything in between /* and */ is considered as comment. Hence in the given example version 1.0 is not considered as part of the comment. So nested comments are not allowed.


What mark-up is used to insert comments in a CSS file?

In CSS you would use: /* to open the comment , and the reverse */ to close In HTML it is: <!-- to open and --> to close


How do you insert a comment in CSS?

with a slash and an asterisk /* like this :D */


What is comment in c programming?

COMMENT:- comment a re not necessary in the program. however, to understand the flow of programs the programmer can include comments in the program. comment are to be inserted by the programmer. It is useful for documentation.Comment are nothing but some kind of statements which are placed between the delimiters /* & */. The compiler does not execute comments. Thus, we can say that comments are not the part of executable program.The user can frequently use any number of comments that can be placed any where in the program. Please note that the comments and statements can be nested. The user should select the OPTION MENU of the editor and select the COMPILER - SOURCE -NESTED COMMENTS ON/OFF). The Comments can be inserted with a single statement or in nested statement.Types of comment in c/c++. is following bellow1. // this is a single line comment2. /* */ this sing is multi line OR nested line commentseg. /* int i=90;char ch=65; */ close multi line commentsmade by [ARUN KUMAR RAI]


Written remarks in your HTML or CSS document which will not be displayed in the browser?

Comments are not displayed by the browser, but they can help document your HTML source code.


Need comments of web designing?

Web designing is one of the popular fields today. It uses HTML and CSS to make it complete.


What is nested logic?

In Nested Logic a Logic is contained within a Logic. If the Outer Logic is TRUE then the internal Logic is executed. Nested IF, Nested For, Nested While, e.t.c are some examples of Nested Logic in Modern Computer Languages.


When was Nested created?

Nested was created in 1977.


What is css and deffrent type of css?

css


What are examples of nested solids?

three examples of nested solids


Is have nested present past future?

"Have nested" is in the present perfect tense.