The type read-only property of the HTMLFieldSetElement interface returns the string "fieldset".
type
HTMLFieldSetElement
"fieldset"
The string "fieldset".
const fs = document.querySelector("fieldset"); console.log(fs.type); // "fieldset"
<fieldset>