Learning Web Components
1h 24mIntermediate2017-05-08
Authors

Joe Marini
Senior Developer Advocate at Google, Developer
Course details
Whether you realize it or not, you are already using web components when you develop. Elements like forms, HTML tags, and more are all web components native to web browsers. Beyond these standard elements, you can also create custom web components to further simplify the process of building and maintaining web applications. This course explains how to make custom encapsulations, imports, templates, and built-in elements by using web component specifications and following web standards.
Joe Marini starts the course by going into HTML templates, which provide a browser-native way to declare sections of HTML markup that will be used frequently in your app. Next, he covers HTML imports, explaining how to use them and create reusable modules. Then, he takes you through working with custom elements. To wrap up the course, he discusses Shadow DOM and how to create Shadow DOM to define custom element structure and rendering within a page.
Learning objectives
Web standards
Customizing web components
Activating and using templates
Using HTML imports
Creating reusable modules
Defining custom elements
Customizing elements and styles
Creating Shadow DOM
Styling and Shadow DOM
Joe Marini starts the course by going into HTML templates, which provide a browser-native way to declare sections of HTML markup that will be used frequently in your app. Next, he covers HTML imports, explaining how to use them and create reusable modules. Then, he takes you through working with custom elements. To wrap up the course, he discusses Shadow DOM and how to create Shadow DOM to define custom element structure and rendering within a page.
Learning objectives
Web standards
Customizing web components
Activating and using templates
Using HTML imports
Creating reusable modules
Defining custom elements
Customizing elements and styles
Creating Shadow DOM
Styling and Shadow DOM
Skills covered
Web Development ToolsWeb Development
Concepts
0. Introduction
- 01 - Welcome
- 02 - What you should know
- 03 - Exercise files
1. Overview of Web Components
- 04 - What are Web Components
- 05 - The Web Component standards
2. HTML Templates
- 06 - Overview of HTML templates
- 07 - Declare template content
- 08 - Activate and use templates
3. HTML Imports
- 09 - Overview of HTML imports
- 10 - Use HTML imports
- 11 - Create reusable modules
4. Custom Elements
- 12 - Overview of custom elements
- 13 - Define custom elements
- 14 - Custom elements and styling
- 15 - Custom element properties and attributes
5. Shadow DOM
- 16 - Introduction to Shadow DOM
- 17 - Create Shadow DOM
- 18 - Composition and content
- 19 - Shadow DOM from templates
- 20 - Styling and Shadow DOM
- 21 - A finished Web Component
Conclusion
- 22 - Next steps
Related courses
- Learning Linux Command Line
- Data Structures in JavaScript: Trees and Graphs
- Spring 6: Spring Security
- Learning Markdown: Formatting Text without the Complexity
- Building Full-Stack Applications with HTMX
- JavaScript: Building Linked Lists Data Structures
- HTMX with Thymeleaf in Spring Boot
- HTML Essential Training