What is the difference between $('header').html() and $('header').text()?
$('header').html()
$('header').text()
$('header').html() returns all headers in an HTML document. $('header').text() the first line of a text file.
$('header').html() strips all HTML from the header. $('header').text() always returns an empty string.
$('header').html() returns only the HTML tags used, without the text. $('header').text() returns only the text
$('header').html() returns the inner HTML of the header. $('header').text() returns only the text