jQuery Aris Write HTML In JS Example

$('.demo').html(HTML(
  ['div', {
    class: 'alert alert-info',
    // more attributes here
    },
    ['button', 'Action Button', {
      class: 'btn btn-danger',
      // more attributes here
    }],
    ['img', {
      src: 'https://www.jqueryscript.net/dummy/1.jpg',
      // more attributes here
    }],
    ['p', 'custom text',{
      class: 'lead',
      // more attributes here
    }
  ]
]));