D3 also has the `selectAll()` method to select a group of elements. It returns an array of HTML nodes for all the items in the document that match the input string. Here's an example to select all the anchor tags in a document: ```js const anchors = d3.selectAll("a"); ``` Like the `select()` method, `selectAll()` supports method chaining, and you can use it with other methods.