var html = '<div style="display: inline-block; ' + 'color: white; ' + 'background-color: black;">' + 'Lorem ipsum' + '</div>'; alert(html);