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://source.unsplash.com/aK5Dt6L6_hQ/400x300',
      // more attributes here
    }],
    ['p', 'custom text',{
      class: 'lead',
      // more attributes here
    }
  ]
]));