<span>표준 요소</span>
<red-span>비표준 요소</red-span>
class RedSpan extends HTMLElement {
  constructor() {
    super();
    this.innerHTML = `
      <style>
        span { 
          color: red;
        }
      </style>
      <span>
        사용자 정의 요소
      </span>
    `;
  }
}

customElements.define('red-span', RedSpan);

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.