📜  web mdc cdn - Html (1)

📅  最后修改于: 2023-12-03 15:21:06.958000             🧑  作者: Mango

Web MDC CDN - HTML

Web MDC CDN (Material Design Components Content Delivery Network) is a hosted, third-party server that provides Material Design Components (MDC) HTML, CSS, and JavaScript resources for use in web pages, applications, and other digital media.

Using Web MDC CDN is a great way to simplify the use of MDC in your web development projects. Instead of having to manually download and update the MDC resources in your project, you can simply link to Web MDC CDN's hosted versions of the resources.

HTML Resources

Web MDC CDN provides a range of HTML resources for use in web development projects. These resources include:

  • pre-built HTML templates for common MDC components such as buttons, cards, and menus
  • code snippets for individual HTML components, including their required CSS and JavaScript
  • documentation that provides details on all available HTML components and how to use them in your projects

To use these HTML resources in your projects, simply link to them in your HTML code. For example, to use the pre-built button template, you would add the following code to your HTML file:

<link rel="stylesheet" href="https://unpkg.com/@material/button@^10.0.0/dist/mdc.button.css" />
<script type="module" src="https://unpkg.com/@material/button@^10.0.0/dist/mdc.button.js"></script>
<button class="mdc-button">Click Me</button>

This code links to the button CSS and JavaScript files hosted on Web MDC CDN, and then uses the mdc-button class to apply the pre-built button styles to an HTML button element.

Conclusion

Web MDC CDN is a powerful resource for web developers looking to use MDC in their projects. By providing hosted HTML, CSS, and JavaScript resources, Web MDC CDN simplifies the use of MDC and saves developers time and effort.