{"id":87,"date":"2022-01-11T17:45:37","date_gmt":"2022-01-11T17:45:37","guid":{"rendered":"https:\/\/melfaeforest.xhere.eu.org\/?p=87"},"modified":"2022-02-02T21:43:00","modified_gmt":"2022-02-02T21:43:00","slug":"html-css-course-day-5-pseudo-classes","status":"publish","type":"post","link":"https:\/\/melfaeforest.xhere.eu.org\/?p=87","title":{"rendered":"HTML\/CSS Course \u2013 Day 5 \u2013 Pseudo-Classes"},"content":{"rendered":"\n<p>It is possible to make Pseudo-Classes in CSS, by putting a tag name such as &lt;li&gt;, then a colon, then putting something like \u201cfirst-child\u201d afterwards. Putting that example together would look like \u201cli:first-child\u201d for the selector. This example would only apply the styling to the first child of any list.<\/p>\n\n\n\n<p>In addition, you can put \u201cnth-child\u201d then, in parentheses, either \u201ceven\u201d or \u201codd\u201d, and the above example uses a list item would only apply the styling to either the even or the odd numbered list items.<\/p>\n\n\n\n<p>There is also a misconception concerning Pseudo-Classes. If you were to try doing a nested styling that uses pseudo-classes, such as \u201carticle p:first-child\u201d, then what would happen? Would the first child of a &lt;p&gt; tag inside an &lt;article&gt; tag be affected? Actually no it wouldn\u2019t. In that circumstance, the very first child element of the &lt;article&gt; tag would be affected by the styling instead, if possible.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It is possible to make Pseudo-Classes in CSS, by putting a tag name such as &lt;li&gt;, then a colon, then putting something like \u201cfirst-child\u201d afterwards. Putting that example together would look like \u201cli:first-child\u201d for the selector. This example would only apply the styling to the first child of any list. In addition, you can put [&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-87","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\/87","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=87"}],"version-history":[{"count":2,"href":"https:\/\/melfaeforest.xhere.eu.org\/index.php?rest_route=\/wp\/v2\/posts\/87\/revisions"}],"predecessor-version":[{"id":289,"href":"https:\/\/melfaeforest.xhere.eu.org\/index.php?rest_route=\/wp\/v2\/posts\/87\/revisions\/289"}],"wp:attachment":[{"href":"https:\/\/melfaeforest.xhere.eu.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=87"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/melfaeforest.xhere.eu.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=87"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/melfaeforest.xhere.eu.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=87"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}