Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Nossos voluntários ainda não traduziram este artigo para o Português (do Brasil) . Junte-se a nós e ajude a fazer o trabalho!

Summary

Comments are used to add explanatory notes or prevent the browser from interpreting parts of the stylesheet.

Syntax

/* Comment */

Examples

/* A single line comment */

/*
A comment
which stretches
over several
lines
*/

Notes

The /* */ comment syntax is used for both single and multi line comments. There is no other way to specify comments in external stylesheets. However, when using the <style> element, you may use <!-- --> to hide CSS from older browsers, although this is not recommended. As in most programming languages that use the /* */ comment syntax, comments cannot be nested. In other words, the first instance of */ that follows an instance of /* closes the comment.

Specifications

See also

Etiquetas do documento e colaboradores

Etiquetas: 
 Colaboradores desta página: bychek.ru, SphinxKnight, Sheppy, ethertank, teoli, tregagnon, jswisher, McGurk
 Última atualização por: bychek.ru,