.html() Method

Syntax

.html()

Description

.html() method allows to insert html style to the matched element. You can change the HTML style of the text in a particular element. The below example clearly shows you how to change the HTML style of the text in an element using .html() function.

Example Code

Result:

Changing the Text

jQuery Tutorial

This is .text() jQuery



Ask Questions

Ask Question