A comment is a text within HTML, CSS or in other programming languages that is ignored by web browser. It is in the code to provide information about the code or to temporarily disable a section of code or to provide other feedback from the code developer. Commented code makes it easier for code to be transferred from one team member to another. A CSS comment begins with “/*”, and ends with “*/”. Comments can appear before or within rule sets as well as across multiple lines. For example:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
p { /* Single Line Comment Here */ /* Multi-Line Comment Here */ margin: 1em; /* 1em = 10px */ padding: 1em; /* color: red; */ background-color: green; } |
You may also be interested to learn about display shortcode in templates, wrap images in div and use different single template per category.