I am revamping my website to a more modern web application, and here is the HTML code I am using:
<joexn-profile>
<joexn-logo></joexn-logo>
<joexn-text></joexn-text>
</joexn-profile>
Additionally, here is the JavaScript code that I have implemented for the <joexn-profile>
tags:
var joexnprofile = document.querySelector('joexn-profile');
joexnprofile.insertAdjacentHTML( 'afterBegin', '<center><div class="joexn-profile">');
joexnprofile.insertAdjacentHTML( 'afterEnd', '</div></center>');
However, I have encountered an issue where the
<div class="joexn-profile">
tag automatically closes. Please refer to the inspect element view below:
https://i.sstatic.net/TiYT1.png
This page contains JavaScript Only