jQuery Set Content
<!DOCTYPE html> <html> <head> <script src="https://code.jquery.com/jquery-3.7.1.min.js"></script> </head> <body> <p id="a">Old text</p> <p id="b">Old text</p> <script> $(document).ready(function() { // Shows the tag as plain characters $("#a").text("I am <b>bold</b>"); // Renders the word bold in bold $("#b").html("I am <b>bold</b>"); }); </script> </body> </html>