{"id":13736,"date":"2016-01-02T08:27:45","date_gmt":"2016-01-02T08:27:45","guid":{"rendered":"http:\/\/www.oracletutoring.ca\/blog\/?p=13736"},"modified":"2016-01-02T08:27:45","modified_gmt":"2016-01-02T08:27:45","slug":"css-comments","status":"publish","type":"post","link":"https:\/\/www.oracletutoring.ca\/blog\/css-comments\/","title":{"rendered":"CSS:  comments"},"content":{"rendered":"<h1>The tutor mentions a helpful feature of CSS.<\/h1>\n<p>Programmers are familiar with the idea of comments &#8211; code that the computer doesn&#8217;t process, but is meant for humans to read.  Commenting is useful to explain what sections of code do.  Another use is to comment out a section to see how the program functions without it.  If, afterwards, that section is desired, it can be &#8220;uncommented&#8221;, so the computer will process it.<\/p>\n<p>CSS has comments.  Programmers might find them familiar:<br \/>\n<span style=\"font-family:monospace\"><br \/>\n.hh1<br \/>\n \/*{<br \/>\ncolor:blue;<br \/>\n}*\/<br \/>\n{<br \/>\ncolor:red;<br \/>\n}<br \/>\n<\/span><\/p>\n<p>Resulting from the CSS coding above, the tags that are class <span style=\"font-family:monospace\">hh1<\/span> will be rendered in red.  The code that suggests <span style=\"font-family:monospace\">color:blue<\/span>  lies between the comment marks <span style=\"font-family:monospace\">\/*<\/span> and  <span style=\"font-family:monospace\">*\/<\/span> so it will not be rendered.<\/p>\n<p>I&#8217;ve tried the CSS commenting; so far as I&#8217;m concerned, it works:)<\/p>\n<p>Source:<\/p>\n<p><a href=\"http:\/\/www.w3schools.com\/css\/css_syntax.asp\">w3schools.com<\/a><\/p>\n<p>Jack of <a href=\"https:\/\/www.oracletutoring.ca\">Oracle Tutoring by Jack and Diane,<\/a> Campbell River, BC.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The tutor mentions a helpful feature of CSS. Programmers are familiar with the idea of comments &#8211; code that the computer doesn&#8217;t process, but is meant for humans to read. Commenting is useful to explain what sections of code do. &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"more-link\" href=\"https:\/\/www.oracletutoring.ca\/blog\/css-comments\/\"> <span class=\"screen-reader-text\">CSS:  comments<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[105,837],"tags":[1315],"class_list":["post-13736","post","type-post","status-publish","format-standard","hentry","category-computer-science","category-web-design","tag-css-comments"],"_links":{"self":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/13736","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/comments?post=13736"}],"version-history":[{"count":10,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/13736\/revisions"}],"predecessor-version":[{"id":13746,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/13736\/revisions\/13746"}],"wp:attachment":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/media?parent=13736"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/categories?post=13736"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/tags?post=13736"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}