Skip to content

Muslim Entrepreneur & Software Engineer

I'm a Muslim entrepreneur and software engineer writing about life, tech, and faith. On this blog I share what I'm building, how I'm thinking, and where Islam guides me in the digital age. From AI experiments to blockchain projects to reflections on purpose, it's all part of the same journey.

Menu
  • Home
  • This Is Me
  • Get in touch
Menu

Web Components,the new standard in modular HTML development

Posted on October 2, 2015October 4, 2015 by Asif Amod

Web components have been around for a long time, under the hood of HTML.They are simply a combination of HTML, CSS and JavaScript package together as an HTML element. Web Components actually account for many of the huge strides that have been made with HTML5.

One of the best example is the <video> element, by simply adding a SRC value to this, your video is displayed in the browser with button controls and time indicators, you have a player from just this one HTML element.

These are all actual Web Elements, we just never thought to stop and look at them all. When you saw this as part of the HTML5 specification you may have thought, ‘WOW that’s great’ but have you ever wondered how this was all built? How are the components we use and take for granted every day actually created?

Plus, we can’t just define HTML spec for ourselves, can we? Well that’s exactly what we can do. Browsers have been working really hard, over the past year or so to give developers access to this hidden part of HTML.We are not quite there, but the direction taken by all browsers to do just this is a good sign of good things to come. There are also a host of JavaScript polyfills available to give us the methods needed to take full control of our own HTML.

Web Components are constructed with four core elements of support that browsers have been working on. Custom Elements enables the creation and manipulation of custom HTML elements. HTML imports can import packaged HTML, CSS and JavaScript into an HTML page, whereas HTML Templates hold content or information that is not rendered on page load but is available to render at runtime finally. Shadow DOM enables the structure of a web component to be separated from the DOM of the page providing encapsulation. These four elements will be explained in more detail on my next post. The importance of this change in HTML development cannot be overstated. The evolution of HTML as a language, although excellent, has been pretty slow going. This is mainly due to it being in the hands of the browser vendors, with possible developments/ideas submitted by the general development community. These browsers then prioritise areas of development and gradually define new specifications and build support for these into their applications, but the ability to build our web components gives the entire community control to directly contribute to the evolution of HTML.

 

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

About Me

Most people wake up to an alarm clock. I wake up to roosters and the hum of solar panels. Life out here isn’t always easy, but that’s the point. I have six kids, and we homeschool—actually, we unschool. No rigid curriculums, just learning through curiosity and real challenges.

Islam plays a huge role in my life. It reminds me that success isn’t just about money or status—it’s about what you do with what you’ve been given. I am the co-founder of an ethically focused digital agency where we build cloud software and marketing systems.

Read More

📧 Subscribe to Newsletter

Get weekly updates with our latest posts delivered to your inbox!

Subscribe to Our Newsletter

Get weekly updates with our latest posts and insights delivered to your inbox.

Powered by digitalmotion.io & hosting by hostwp.co