---
title: "What is lit-html?"
term: "lit-html"
description: "lit-html is a lightweight JavaScript templating library from Google's Polymer Project that renders HTML templates and efficiently updates only the parts of a page that change."
url: "https://glossary.io/lit-html/"
published: "2026-11-22T20:39:17.710Z"
updated: "2026-11-22T20:39:17.710Z"
topics:
  - "Web development"
wikidata: "https://www.wikidata.org/wiki/Q116950832"
---

# What is lit-html?

**Definition:** lit-html is a lightweight JavaScript templating library from Google's Polymer Project that renders HTML templates and efficiently updates only the parts of a page that change.

lit-html uses standard [JavaScript](https://glossary.io/javascript/) tagged template literals to describe HTML, so it needs no special compiler or virtual DOM. When data changes, it updates only the dynamic values in a template instead of re-rendering everything. It is the rendering engine of Lit, Google's library for building fast, lightweight [web components](https://glossary.io/web-components/), and it can also be used on its own to render parts of a page.

## lit-html resources

- [Google's 'Polymer Project' could replace PHP templates with their 'lit' library and web components](https://coywolf.com/news/web-development/google-lit-templates-web-components/)

## Related terms

- [Web Components](https://glossary.io/web-components/)
- [JavaScript](https://glossary.io/javascript/)

**Topic:** [Web development](https://glossary.io/topics/web-development/)

## Cite this definition

- APA: What is lit-html? (2026, November 22). Glossary. https://glossary.io/lit-html/
- MLA: “What Is lit-html?” Glossary, Coywolf, 22 Nov. 2026, glossary.io/lit-html/.
- Chicago: “What Is lit-html?” Glossary. Coywolf. November 22, 2026. https://glossary.io/lit-html/.

Published November 22, 2026.
