{"id":21105,"date":"2017-04-23T23:01:41","date_gmt":"2017-04-23T23:01:41","guid":{"rendered":"http:\/\/www.oracletutoring.ca\/blog\/?p=21105"},"modified":"2017-04-23T23:01:41","modified_gmt":"2017-04-23T23:01:41","slug":"web-design-css-properties-vs-html-attributes","status":"publish","type":"post","link":"https:\/\/www.oracletutoring.ca\/blog\/web-design-css-properties-vs-html-attributes\/","title":{"rendered":"Web design:  CSS properties vs html attributes"},"content":{"rendered":"<h1>Tutoring, definitions are important.  The tutor shares the difference between CSS properties and html attributes.<\/h1>\n<p>A CSS property is something you change to affect the appearance of an element.  For instance, the <span style=\"font-family:monospace;font-size:120%\">color<\/span> property can be set to the color you want the text to print in.  The <span style=\"font-family:monospace;font-size:120%\">font-size<\/span> property can be set to the size you want the text to appear.<\/p>\n<p>An html attribute doesn&#8217;t change the appearance of the element, but describes it in some other way.  As an example, a name can have the <span style=\"font-family:monospace;font-size:120%\">title=&#8221;<em>description<\/em>&#8221; <\/span>attribute to describe more about it when the user mouses over.  The <span style=\"font-family:monospace;font-size:120%\">alt=&#8221;<em>text description<\/em>&#8221; <\/span>attribute renders descriptive text when the image won&#8217;t be rendered.  <span style=\"font-family:monospace;font-size:120%\">lang<\/span> (language) and <span style=\"font-family:monospace;font-size:120%\">href<\/span> (destination of an anchor tag) are two more attributes.<\/p>\n<p>I would say that, indeed, properties belong to CSS, while attributes belong to html.<\/p>\n<p>Source:<\/p>\n<p><a href=\"https:\/\/www.w3schools.com\/html\/html_attributes.asp\">w3schools.com<\/a><\/p>\n<p><a href=\"https:\/\/www.w3schools.com\/cssref\/pr_font_font-size.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>Tutoring, definitions are important. The tutor shares the difference between CSS properties and html attributes. A CSS property is something you change to affect the appearance of an element. For instance, the color property can be set to the color &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"more-link\" href=\"https:\/\/www.oracletutoring.ca\/blog\/web-design-css-properties-vs-html-attributes\/\"> <span class=\"screen-reader-text\">Web design:  CSS properties vs html attributes<\/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":[1631,837,1855],"tags":[2275],"class_list":["post-21105","post","type-post","status-publish","format-standard","hentry","category-css","category-web-design","category-web-programming","tag-attributes-vs-properties"],"_links":{"self":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/21105","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=21105"}],"version-history":[{"count":22,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/21105\/revisions"}],"predecessor-version":[{"id":21127,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/21105\/revisions\/21127"}],"wp:attachment":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/media?parent=21105"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/categories?post=21105"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/tags?post=21105"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}