ExampleSelect all p elements:
Try it yourself » |
The element selector selects elements with the specific tag name.
The tag name is the text between the < and > of HTML tags.
$("tagname") |
Parameter | Description |
---|---|
tagname | Required. Specifies the tag name of the elements to select. |