Gets an HTML content string from the first selected element.
The HTML content string.
$('.orange').html();//=> Orange$('#fruits').html('<li class="mango">Mango</li>').html();//=> <li class="mango">Mango</li> Copy
$('.orange').html();//=> Orange$('#fruits').html('<li class="mango">Mango</li>').html();//=> <li class="mango">Mango</li>
https://api.jquery.com/html/
Replaces each selected element's content with the specified content.
The content to replace selection's contents with.
The instance itself.
$('.orange').html('<li class="mango">Mango</li>').html();//=> <li class="mango">Mango</li> Copy
$('.orange').html('<li class="mango">Mango</li>').html();//=> <li class="mango">Mango</li>
Gets an HTML content string from the first selected element.