var elementHTML = $('#').html(); code example Example: variables in html <var>This text will be italicized</var>