print text html code example Example 1: how to print in html Javascript console.log("Text"); Example 2: html text tag <text>Your Text...</text>