innerhtml and textcontent code example Example: difference between innerhtml and textcontent difference between innerhtml and textcontent