answersLogoWhite

0


Best Answer

Comments in a Cascading Style Sheet consist of a forward-slash adjacent to an asterisk (star), the comment, and an asterisk (star) adjacent to a forward-slash.

Anything within the two symbols (/* and */) is considered to be a comment. For example:

/* This is a comment.
Anything between the
two symbols is ignored. */

User Avatar

Wiki User

14y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

15y ago

Stars with "/*" and ends with "*/" and white space is ignored.

This answer is:
User Avatar

User Avatar

Wiki User

9y ago

/* This is a CSS comment */

This answer is:
User Avatar

User Avatar

Wiki User

11y ago

/* comment goes here */

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you insert comment in css file?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

How do you insert a command into a CSS file?

You cannot insert a command into CSS, you can make styles that happen in HTML.


What is an embedded style?

Embedded CSS simply means that your CSS is written in an external file (i.e. not in your HTML file). The external file can be anywhere on your server and must end in ".css". You would call this CSS file from inside your HTML file like this:On the otherhand, inline CSS is when your CSS is included inside of your HTML code, for example:foo


What is CSS File and why it is used?

A CSS file can tell the web browser how a web page is supposed to look. The web page (HTML file) itself says what words are on the page, and which pictures, but you CAN use the CSS file to specify what goes where, how big, what color and font, and things like that.You CAN also specify all those things in the HTML file. The biggest advantages of using separate CSS are:The same CSS file can be used for all pages in a site, so if you want to change something, you can just change it in one place, and all the pages will now look the way you want.If you use the same CSS file for every page, your pages will load faster, since the browser does not re-fetch the CSS file every time.


Can css comments be nested?

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.


What are the Differences between style sheet and templates?

Templates can be composed of HTML/XHTML files, images, and a CSS file. They all work together to make a site, but the CSS has the control over how it looks. A CSS file by itself is just that. A CSS file of no use until it is linked to bt web pages to use its styling properties.

Related questions

How do you insert a comment in CSS?

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


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 command into a CSS file?

You cannot insert a command into CSS, you can make styles that happen in HTML.


How do you make CSS layouts?

CSS layouts can be created in an external CSS file. The extension of the file should be CSS only.


How do I use a CSS file?

You need a .html file with HTML code inside and a .css file containing your CSS instructions.For your CSS instructions, you'd move HTML instructions for presentation and appearance to your CSS file. For example, let's say in your HTML mark-up you now have a long section for your "Style" commands. These usually cover things like font size, font color, background image or color, and margins. As you move each HTML piece, you re-write it with CSS codes. Instead of numerous HTML instances that say you want all H1 levels to be a font size 12, you'd have one instance of code in the CSS that controls all instances of H1.Once you've got these 2 files you need to link the .css file inside your .html file in the section.To reference your .css you typically insert the following:


Why is the CSS not working?

if you neglected to save your css file in a .css format, then it may not work.


What is an embedded style?

Embedded CSS simply means that your CSS is written in an external file (i.e. not in your HTML file). The external file can be anywhere on your server and must end in ".css". You would call this CSS file from inside your HTML file like this:On the otherhand, inline CSS is when your CSS is included inside of your HTML code, for example:foo


What program saves files as a CSS file?

Any text editor will, just save the file with .css at the end.


How are CSS files created for and used by website pages?

How toYou can use CSS as an external file imported into a HTML file or CSS can be embedded into the HEAD section of a HTML page.Creating/Editing a CSS fileYou can create a CSS file by saving a .txt file as a .css file type. The easiest way though to edit CSS is by searching the web to find a Text Editor, an editor is usually free to download and will allow a user to manipulate CSS and HTML files and to save them.Importing CSS into a HTML fileTo import a CSS file into a HTML file a STYLE declaration must be made inside the HEAD tags of the document and a link to the CSS file is placed within the STYLE tags, see example below.Linking CSS into a HTML fileTo link a CSS file into a a HTML file, a LINK tag must be used and placed within the HEAD tags. Embedding CSS into a HTML fileTo embed CSS styles into a HTML file a STYLE tag must be used to contain the CSS, see example below.


What is contained in a CSS file?

Variables.


What is CSS File and why it is used?

A CSS file can tell the web browser how a web page is supposed to look. The web page (HTML file) itself says what words are on the page, and which pictures, but you CAN use the CSS file to specify what goes where, how big, what color and font, and things like that.You CAN also specify all those things in the HTML file. The biggest advantages of using separate CSS are:The same CSS file can be used for all pages in a site, so if you want to change something, you can just change it in one place, and all the pages will now look the way you want.If you use the same CSS file for every page, your pages will load faster, since the browser does not re-fetch the CSS file every time.


How do you change the comment button image in CSS?

Comment button where, really it depends on the script/platform, you have a url to this site?