DMXzone Summer Sale: Save up to 51% with code DMXSUMMER26. Ends in

How to Create Your Own HTML Elements With Web Components

Wrap everything up into nice, neat little custom HTML elements

Web Components are currently and excitedly being talked about as an upcoming "tectonic shift for web development" with the promise of permanently reshaping the web design landscape. Big players are moving forward to bring web components into reality. Both Google and Mozilla are already gradually rolling out native browser support.

 

What are web components you ask? In a nutshell, web components give you a way to create your own custom HTML elements which can do just about anything you need them to. Instead of loading up your sites with verbose markup, long scripts and repetitive code, you wrap everything up into nice, neat little custom HTML elements.

The easiest way to understand how web components allow for custom HTML elements is to first look at an existing element we already know from HTML5: the <video> tag.

Comments

Be the first to write a comment

You must me logged in to write a comment.