Understanding HTML Attributes - What Are Attributes, and How Do They Work?

Tell us what’s happening:

I cant understand the concept of boolean elements, elements and attributes

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36

Challenge Information:

Understanding HTML Attributes - What Are Attributes, and How Do They Work?

in HTML only an attribute can be boolean

in the case of HTML attributes, a boolean attribute has only two possible states, being there or not being there

for example, you can have an input element that is not required <input type="text"> by not writing the required attribute, or an element that is required by writing the required attribute <input type="text" required>

boolean attributes like required, checked and others do not get a value