Web Components are a set of features currently being added by the W3C to the HTML and DOM specifications that allow for the creation of reusable widgets or components in web documents and web applications.
The intention behind them is to bring component-based software engineering to the World Wide Web. The components model allows for encapsulation and interoperability of individual HTML elements - wikipedia
- Pollyfill - github
Web Components consist of 4 main features which can be used separately or all together: - Custom Elements - new HTML elements - Shadow DOM - Encapsulated DOM - HTML Imports - importing HTML documents - HTML Templates - contain inert chunks of DOM
# Libraries
There are several libraries that are built on Web Components with the aim of increasing the level of abstraction when creating custom elements. Four of the familiar libraries are X-Tag , Slim.js, Polymer (Polymer (library)), and Bosonic.
Two of these, Bosonic and Polymer, provide ready-made components that are free to use. These components can be used interchangeably as they are all built on open web technologies - vaadin.com
# Examples: markdown
# Links - webcomponents.org - webcomponents.org - Community - webcomponents.org - Introduction -... - webcomponents.org - webcomponents.org - webcomponents.org - PolymerElements/marked-... - webcomponents.org - StartPolymer/s-markdown -... - webcomponents.org - Juicy/juicy-markdown-editor... - webcomponents.org - Dealing with files - Learn... - mozilla.org - How to Modularize HTML Using... - zellwk.com - Polymer (library) - Wikipedia - wikipedia.org - Welcome - Polymer Project - polymer-project.org - X-Tag ★ Web Components - github.io - Web Components | MDN - mozilla.org
# See also
- Features - Browser Support - Libraries