search engine optimization articles do it yourself seo hiring search engine experts html and search engine optimization web site analysis and submission service

HTML Help: CSS Comment

I know how to make comments in HTML, but can you make comments in external style sheets?
You bet, but CSS comments are coded in a different way, after all, they wouldn't want to keep things as easy as possible by being consistent! ;)

<!-- This is an HTML comment. -->

/* This is a style sheet comment. */
The text between the asterisks is commented out. The asterisks should be inside forward slashes. There should be a space before and after the comment.

Do that and it should be okay. I say "should" instead of "will" because if I say it will be okay, sure enough some noodnik using an oddball browser that only 3 people in the whole world use will write to tell me the CSS comment blew up their microwave oven.

Having said all that, have you thought about keeping a second file where you make your comments rather than inserting a lot of explanations into your HTML code and style sheets? It will help keep your pages leaner, cleaner and perhaps marginally faster for users on dial up connections.

This concludes the

HTML Help about CSS Comments

.
Back | HTML FAQ | HTML Tag Chart | HTML Index | Web Design Tutorials
search engine optimization course
If you want your web site to rank high in the search engines . . . what are you going to do to get it there? Check out my search engine optmization guide, SEO for YOU: Search Engine Optimization for Ordinary Everyday People!

Check out SEO for YOU now!

Almost a Newsletter

Subscribe today for exclusive website design tutorials and grab some free gifts to boot! Learn more, or subcribe below:
Email:

First Name:

Privacy Policy

Did you know...

The member's site has about 100 standards compliant HTML and CSS tutorials, 31 handy reference charts, reprintable content, web graphics, exclusive fonts, free software, free ebooks and more? All this for less than 9 cents a day! [ Details ]
See my fancy bottom! :)