The HTML() method is utilized to set content. It overwrites the whole content for the matched elements.

BY Best Interview Question ON 16 Aug 2019

Example

$('#IDNAME').html('<p>Best Interview Question</p>');