Sitemap
Samsung Internet Developers

Writings from the Samsung Internet Developer Relations Team. For more info see our disclaimer: https://hub.samsunginter.net/about-blog

Follow publication

How to Create Custom Elements in HTML

3 min readNov 13, 2019

--

A Banner illustration containing the text “<HowTo> Create Custom Elements in <HTML>”

What Are custom elements ?

What do I need ?

How to use it ?

Lets get started:

Step 1:

A simple div containing two span, with our quote and the author name
Nothing that fancy x)

Step 2:

This is to let know the parser that we have a class that is linked to a Custom element.

Step 3 :

Browser support

As of 12.11.2019 — Source: https://caniuse.com/#feat=mdn-api_customelementregistry

Sources:

--

--

No responses yet