Js add a div with subordinate tags

add one such div
< div class= "array" >

<p class="columns">
    <span class="subsection" name="1">1</span>
    <span class="subsection" name="2">2</span>

< / div >
how to write js code

Dec.02,2021

Native

var d = document.createElement('div')
d.className = 'array'
d.innerHTML = `
  <p class="columns">
      <span class="subsection" name="1">1</span>
      <span class="subsection" name="2">2</span>
  

` xxx.appendChild(d)

JQ

$(xxx).append(`
<div class="array">
    <p class="columns">
        <span class="subsection" name="1">1</span>
        <span class="subsection" name="2">2</span>
    

</div> `)
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e44768-44aa9.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e44768-44aa9.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?