{"id":93,"date":"2022-01-11T22:25:25","date_gmt":"2022-01-11T22:25:25","guid":{"rendered":"https:\/\/melfaeforest.xhere.eu.org\/?p=93"},"modified":"2022-02-02T21:42:16","modified_gmt":"2022-02-02T21:42:16","slug":"html-css-course-day-5-inheritance-the-universal-selector","status":"publish","type":"post","link":"https:\/\/melfaeforest.xhere.eu.org\/?p=93","title":{"rendered":"HTML\/CSS Course \u2013 Day 5 \u2013 Inheritance &amp; the Universal Selector"},"content":{"rendered":"\n<p>Inheritance in CSS is simple to understand. If a parent tag has some styling, then every child tag inside will try to inherit the styling of that parent tag if possible. Notice how I said \u201ctry to inherit\u201d, which means not all properties get inherited. The elements that do get inherited are mostly related to text: font-family, font-size, font-weight, font-style, color, etc. Also, if the child tag has styling that would contradict the styling attributes of their parent tag, then the child styling will override their inherited styling.<\/p>\n\n\n\n<p>The Universal Selector isn\u2019t often used, but when it is used, its to apply maybe one or two styling to every element possible, but any other styling from other elements will override whatever conflicting elements the Universal Selector has.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Inheritance in CSS is simple to understand. If a parent tag has some styling, then every child tag inside will try to inherit the styling of that parent tag if possible. Notice how I said \u201ctry to inherit\u201d, which means not all properties get inherited. The elements that do get inherited are mostly related to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[6],"class_list":["post-93","post","type-post","status-publish","format-standard","hentry","category-html-css-course","tag-html-css-course"],"_links":{"self":[{"href":"https:\/\/melfaeforest.xhere.eu.org\/index.php?rest_route=\/wp\/v2\/posts\/93","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/melfaeforest.xhere.eu.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/melfaeforest.xhere.eu.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/melfaeforest.xhere.eu.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/melfaeforest.xhere.eu.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=93"}],"version-history":[{"count":2,"href":"https:\/\/melfaeforest.xhere.eu.org\/index.php?rest_route=\/wp\/v2\/posts\/93\/revisions"}],"predecessor-version":[{"id":286,"href":"https:\/\/melfaeforest.xhere.eu.org\/index.php?rest_route=\/wp\/v2\/posts\/93\/revisions\/286"}],"wp:attachment":[{"href":"https:\/\/melfaeforest.xhere.eu.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=93"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/melfaeforest.xhere.eu.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=93"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/melfaeforest.xhere.eu.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=93"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}