Web Developers Mozilla’s XML Binding Microsoft’s HTML” Developers love components they are a great way to define blocks of code that can be dropped in and reused anywhere they are required. there have been a few attempts to convey this idea on the web over the years with varying degrees of success, but not around in this modern web era.

Mozilla’s XML Binding Language and Microsoft’s HTML Component specifications date back all the way to Internet Explorer 5 almost 20 years ago. Unfortunately, both attempts proved unwieldy, failed to gain traction in other browsers, and ultimately were removed. While they may not be around today. their concepts formed the basis of the modern approaches in use. JavaScript frameworks such as React, Vue or Angular follow a similar approach.


One of the main reasons for their success:-itwords.org

is the ability to contain common logic in an easily sharable pattern in one form or another. While these frameworks can improve the developer experience, they do so at a cost. Language features such as JSX need to be compiled, and many frameworks rely on runtime to manage all of their abstractions. Wouldn’t it be easier if there was a way to get the benefit without all that heavyweight? Web components allow us to do just that.

The concept itself consists of three APls Custom elements, HTML templates, and the shadow DOM- with JavaScript modules gluing them together. By combining the benefits that these technologies provide, it’s possible to start building custom HTML elements that look and behave just like their native counterparts.

Using a web component is

much like using any other existing HTML element. They can be configured using attributes, queried for using JavaScript and even styled through CSS. As long as the browser knows they exist, they differ. are treated no This also allows web components to play well with other frameworks and libraries.

By using the same communication mechanisms as any other element, they can be used alongside any framework that exists today or in the future. Most importantly of all, these are all built upon web standards. The web is built on a concept of backward compatibility.

and by building a web component today it will carry on working for years to come. But before going any further, we should take a look at what makes up these specifications, and how you can get creating and using one today.

About the author


I'm Abdul Saboor, the owner of the site itwords.org has written articles for IT Words, where I share unique information and quality with everyone.IT Words provides free software, new products, tips and tricks related to blogs, social networks, and technological news. I am also the founder of play.google.com, a platform to download mobile applications.

Computer Operating System Information Technology IT Words The Concepts of information technology words Introduction computer words Information Technology Education Computers And Software Education website provides.

Leave a Comment