1
I noticed that some elements of HTML accept the enabled attribute, but I could not identify in W3C which interface shows its possibility of its use. Thank you!
1
I noticed that some elements of HTML accept the enabled attribute, but I could not identify in W3C which interface shows its possibility of its use. Thank you!
2
There is no attribute enabled
in HTML. There is a property .enabled
in the Audio API, and there is a pseudo-selector :enabled
in the CSS API.
The enabled
which would be expected in elements of <form>
and that the CSS have, "it is said" enabled
but it means "not-disabled". That is, it is the presence or absence of the attribute disabled
indicating whether an item is active (enabled
) or not.
Sergio, can I use pseudo-class in any HTML element? Thank you =)
@Ingridfarabulini the elements that respond to :enabled
sane ["button", "input", "select", "textarea", "optgroup", "option", "menuitem", "fieldset"]
. It’s in the link I put up, in the answer.
had seen the link you passed, but I noticed that it is also possible to disable, for example, the html element in IE. I also understood that disabled is not an element attribute. So here in Brazil, when the 'disabled' is present in an element, should I define that the element has a pseudo-class or is it another name? Selector? Thank you =)
Check this link: https://developer.mozilla.org/en-US/docs/HTML/Attributes In this link disabled is considered an attribute.
@Ingridfarabulini there is an attribute disabled
Yes, what does not exist is the enabled
. The pseudo-selector is for CSS and there is :enabled
.
Browser other questions tagged html css html5
You are not signed in. Login or sign up in order to post.
you want to know which elements (tags) use the
enable
?– Brumazzi DB
No, it would be too complex. What I would like to know is which interface (Ex: Htmlelement interface, Element interface, Node interface..) shows us the possibility of using the enable attribute by the elements. (Ex: <html enable>, <html disabled>). Thank you!
– Ingrid Farabulini
I think I understand... Usually the elements that accept the
enable
anddisabled
are buttons, inputs, and text boxes, in general everything related to forms. But I’m not sure if other types of elements accept this property.– Brumazzi DB
Check this link: http://www.w3.org/TR/2012/WD-html5-20121025/elements.html#htmlelement has the Htmlelement interface, but there is no attribute that leads me to the use of enable/disabled. I believe that its use is in another interface. But, what is this interface? Thank you =)
– Ingrid Farabulini