{"id":1016,"date":"2022-02-05T22:12:26","date_gmt":"2022-02-05T22:12:26","guid":{"rendered":"https:\/\/appliedartand.design\/lj\/?p=1016"},"modified":"2022-02-05T22:12:26","modified_gmt":"2022-02-05T22:12:26","slug":"the-golden-rule-of-nesting","status":"publish","type":"post","link":"https:\/\/appliedartand.design\/lj\/2022\/02\/05\/the-golden-rule-of-nesting\/","title":{"rendered":"The &#8216;golden rule&#8217; of nesting"},"content":{"rendered":"\n<p>In light of the future resume assignment I wanted to review some best practices for the nesting order of HTML elements. Keeping track of where tags begin and end can be challenging, but having a clearer understanding of nesting helps.<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>The definition of nesting is when one element is placed inside of another element. Nesting allows you to apply multiple HTML tags to a single piece of content. Whenever we nest one tag inside of another, we indent the inner tag so that the overall tag hierarchy is clear.\u00a0<\/p>\n\n\n\n<p>Another overall purpose this serves is to make sure the parent-child relationship between elements is distinguishable. Proper nesting will make your code easier for others to read and for you to maintain.<\/p>\n\n\n\n<p>I want to say that the golden rule of coding you should follow is: treat others as you would like to be treated and leave it better than you found it. This is also just useful advice for life in general.<\/p>\n\n\n\n<p>And if there\u2019s one thing I have learned during the course this week it is that it\u2019s better to indent and nest your code as you\u2019re doing it, than it is to fix later.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In light of the future resume assignment I wanted to review some best practices for the nesting order of HTML elements. Keeping track of where tags begin and end can be challenging, but having a clearer understanding of nesting helps.<\/p>\n","protected":false},"author":51,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[178],"tags":[],"class_list":["post-1016","post","type-post","status-publish","format-standard","hentry","category-aad-086-sp22"],"_links":{"self":[{"href":"https:\/\/appliedartand.design\/lj\/wp-json\/wp\/v2\/posts\/1016","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/appliedartand.design\/lj\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/appliedartand.design\/lj\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/appliedartand.design\/lj\/wp-json\/wp\/v2\/users\/51"}],"replies":[{"embeddable":true,"href":"https:\/\/appliedartand.design\/lj\/wp-json\/wp\/v2\/comments?post=1016"}],"version-history":[{"count":3,"href":"https:\/\/appliedartand.design\/lj\/wp-json\/wp\/v2\/posts\/1016\/revisions"}],"predecessor-version":[{"id":1019,"href":"https:\/\/appliedartand.design\/lj\/wp-json\/wp\/v2\/posts\/1016\/revisions\/1019"}],"wp:attachment":[{"href":"https:\/\/appliedartand.design\/lj\/wp-json\/wp\/v2\/media?parent=1016"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/appliedartand.design\/lj\/wp-json\/wp\/v2\/categories?post=1016"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/appliedartand.design\/lj\/wp-json\/wp\/v2\/tags?post=1016"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}