Difference between html() method and text() method is so simple. Actually the difference is in their name.
you can write some html code within html() method … however you can not write html code in text() method as parameter. My mistake you can write some html code in text() method but during the compilation the compiler will take it as a plain text. That is if you write something like this ..
.text(‘<b> hello world </b>’);
output: <b> hello world </b>’
and if you write the same code in html() method the output will be
now use those two method according to your need .. 🙂