- The practice of writing HTML markup directly within JavaScript code. Common approaches include JSX (used in React and similar frameworks), tagged template literals, and direct DOM manipulation via properties like
innerHTML. HTML-in-JS is often used in component-based architectures, where markup and logic are co-located rather than separated into distinct files.
- Related terms: JavaScript · Hypertext Markup Language · HTML template · Styled component
- Previous term: HTML template
- Next term: HTML/CSS framework
- Random term: Vector search engine (webglossary.info/random 🎲)