Get started with htm CDN

Apache-2.0 licensed

HTM is a lightweight library that simplifies creating and manipulating HTML elements.

Tags:
  • Hyperscript Tagged Markup
  • tagged template
  • template literals
  • html
  • htm
  • jsx
  • virtual dom
  • hyperscript

Stable version

Copied!

How to start using htm CDN


<!DOCTYPE html>
<html>
<head>
    <title>Get started with htm CDN - cdnhub.io</title>
    <script src="https://cdn.cdnhub.io/htm/3.1.1/htm.js"></script>
</head>
<body htm>
    <h1>Welcome to HTM!</h1>
    <button onclick={() => h(this, 'p', 'Hello, world!')}>Click me</button>
    <p></p>
</body>
</html>
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!

All versions