# Get element text

1. Place the `Charles: Element text` element on the page
2. Give it a value for the selector that matches the element you want to select, eg. `h1` for the h1 title element:

<div align="left"><figure><img src="https://1746625412-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FR8XSg57nbIyYLBX9iJLb%2Fuploads%2FHBgqeIupDPVixd5675jz%2Fimage.png?alt=media&#x26;token=40b890dd-0a60-4247-a1c4-0ccf90a0a27e" alt=""><figcaption></figcaption></figure></div>

Please note that Charles will automatically select the first element that matches the selector.

Learn more about CSS selectors:

* <https://www.w3schools.com/jsref/met_document_queryselector.asp>
* <https://www.w3schools.com/css/css_selectors.asp>
* <https://www.w3schools.com/cssref/css_selectors.php>
