jQuery Element Selector

Example

Select all <p> elements:

'

Try It Yourself

Definition and Usage

The element selector selects elements with the specified tag name.

The tag name refers to the text between < and > of HTML tags.

"',tagname")
Parameter Description
tagname Required. Specifies the name of the element to be selected.