--- title: "hx-select" description: "Controls which part of the response to insert" --- The `hx-select` attribute allows you to select the content you want swapped from a response. The value of this attribute is a CSS query selector of the element or elements to select from the response. ## Syntax ```html ``` Here is an example that selects a subset of the response content: ```html