{"id":71803,"date":"2026-01-25T03:01:00","date_gmt":"2026-01-24T17:01:00","guid":{"rendered":"https:\/\/www.rjmprogramming.com.au\/ITblog\/?p=71803"},"modified":"2026-01-25T18:27:50","modified_gmt":"2026-01-25T08:27:50","slug":"nesting-primer-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/nesting-primer-tutorial\/","title":{"rendered":"Nesting Primer Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=\"_blank\" href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/nesting.html\" rel=\"noopener\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"Nesting Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/nesting.gif\" title=\"Nesting Primer Tutorial\"  style=\"float:left;\" \/><\/a><p class=\"wp-caption-text\">Nesting Primer Tutorial<\/p><\/div>\n<p>The text (which can include emojis) &#8230;<\/p>\n<ul>\n<li>display: inline;<\/li>\n<li>display: inline-block;<\/li>\n<\/ul>\n<p> &#8230; HTML elements are endlessly fascinating in our eyes, regarding the &#8220;nesting&#8221; of elements.<\/p>\n<p>You can read all you like about this at a website like <a target=\"_blank\" title='W3schools' href='http:\/\/www.w3schools.com' rel=\"noopener\">W3schools<\/a> but we find endless surprises, so we decided to code for a web application with scope within a table cell &#8220;parent&#8221; element &#8230;<\/p>\n<ul>\n<li>reinitialize (ie. append) span or p or font or sup or sub or font or h1 or h2 or h3 or h4 or div element to the end of table cell content<\/li>\n<li>nest span or p or font or sup or sub or font or h1 or h2 or h3 or h4 or div element onto the end of the most outer table cell element&#8217;s content within the table cell content, or a clicked element flagged with a pink background<\/li>\n<\/ul>\n<p>We find it interesting changing up the choice above and font-size and new element content textbox settings and seeing what happens.  You see the resultant HTML innards below in a textarea element which changes to are reflected above <font size=1>(and in this way, you can pick an element type not listed above, if you like)<\/font>, as are changes to second and on table cell content&#8217;s on the top row.<\/p>\n<p>Feel free to try out this <a target=\"_blank\" href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/nesting.html_GETME\" rel=\"noopener\">proof of concept<\/a> <a target=\"_blank\" href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/nesting.html\" rel=\"noopener\">Nesting<\/a> web application below &#8230;<\/p>\n<p><iframe src=\"\/\/www.rjmprogramming.com.au\/HTMLCSS\/nesting.html\" style=\"width:100%;height:1200px;\"><\/iframe><\/p>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d71803' onclick='var dv=document.getElementById(\"d71803\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/nest\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d71803' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>The text (which can include emojis) &#8230; display: inline; display: inline-block; &#8230; HTML elements are endlessly fascinating in our eyes, regarding the &#8220;nesting&#8221; of elements. You can read all you like about this at a website like W3schools but we &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/nesting-primer-tutorial\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,14,37],"tags":[1580,341,576,2487,3580,1525,652,2521,1546,2621,997,1238,1581,1254,5404,1319],"class_list":["post-71803","post","type-post","status-publish","format-standard","hentry","category-elearning","category-event-driven-programming","category-tutorials","tag-cell","tag-display","tag-html","tag-inline","tag-inline-block","tag-innerhtml","tag-javascript","tag-nest","tag-nested","tag-nesting","tag-programming","tag-table","tag-table-cell","tag-text","tag-texxtarea","tag-tutorial"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/71803"}],"collection":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/comments?post=71803"}],"version-history":[{"count":7,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/71803\/revisions"}],"predecessor-version":[{"id":71811,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/71803\/revisions\/71811"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=71803"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=71803"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=71803"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}