This content originally appeared on Manuel Matuzović - Blog and was authored by Manuel Matuzović
:defined
represents any element that has been defined. This includes standard elements and custom elements that have been successfully defined.
:defined {
background-color: #000;
color: #fff;
}
Standard elements
<p>I'm defined</p>
<small>I'm defined</small>
I'm defined
I'm definedUndefined custom elements
<unde-fined>I'm not defined</unde-fined>
Defined custom elements
<de-fined>I'm defined</de-fined>
class BasicComponent extends HTMLElement {
constructor() {
super();
}
}
customElements.define('de-fined', BasicComponent);
Deprecated elements
<center>test</center>
<font>test</font>
<blink>test</blink>
My blog doesn't support comments yet, but you can reply via blog@matuzo.at.
This content originally appeared on Manuel Matuzović - Blog and was authored by Manuel Matuzović

Manuel Matuzović | Sciencx (2022-12-30T00:00:00+00:00) Day 70: the defined pseudo-class. Retrieved from https://www.scien.cx/2022/12/30/day-70-the-defined-pseudo-class-2/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.