Day 70: the defined pseudo-class

: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 defined

Undefined custom elements

<unde-fined>I'm not defined</unde-fined>
I’m not defined

Defined custom elements

<de-fined>I'm defined</de-fined>
class BasicComponent extends HTMLElement {
  constructor() {
    super();
  }
}

customElements.define('de-fined', BasicComponent);
I’m defined

Deprecated elements

  <center>test</center>
  <font>test</font>
  <blink>test</blink>
test
test
test

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ć

: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 defined

Undefined custom elements

<unde-fined>I'm not defined</unde-fined>
I'm not defined

Defined custom elements

<de-fined>I'm defined</de-fined>
class BasicComponent extends HTMLElement {
  constructor() {
    super();
  }
}

customElements.define('de-fined', BasicComponent);
I'm defined

Deprecated elements

  <center>test</center>
  <font>test</font>
  <blink>test</blink>
test
test test

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ć


Print Share Comment Cite Upload Translate Updates
APA

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/

MLA
" » Day 70: the defined pseudo-class." Manuel Matuzović | Sciencx - Friday December 30, 2022, https://www.scien.cx/2022/12/30/day-70-the-defined-pseudo-class-2/
HARVARD
Manuel Matuzović | Sciencx Friday December 30, 2022 » Day 70: the defined pseudo-class., viewed ,<https://www.scien.cx/2022/12/30/day-70-the-defined-pseudo-class-2/>
VANCOUVER
Manuel Matuzović | Sciencx - » Day 70: the defined pseudo-class. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2022/12/30/day-70-the-defined-pseudo-class-2/
CHICAGO
" » Day 70: the defined pseudo-class." Manuel Matuzović | Sciencx - Accessed . https://www.scien.cx/2022/12/30/day-70-the-defined-pseudo-class-2/
IEEE
" » Day 70: the defined pseudo-class." Manuel Matuzović | Sciencx [Online]. Available: https://www.scien.cx/2022/12/30/day-70-the-defined-pseudo-class-2/. [Accessed: ]
rf:citation
» Day 70: the defined pseudo-class | Manuel Matuzović | Sciencx | 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.

You must be logged in to translate posts. Please log in or register.