Tools used for this tutorial
jQuery 3.7.1
The following example demonstrates how to select all the elements using the tag name.
var p = $('p'); // Select all <p> elements
var a = $('a'); // Select all <a> elements