Solid
  • Solid
  • Solid Router
  • SolidStart
  • Solid Meta
    • Fine-grained reactivity
      • Basics
      • Class and style
      • Event handlers
      • Props
    • Context
      • Conditional rendering
      • Dynamic
      • Error boundary
      • List rendering
      • Portal
      • Derived signals
      • Memos
    • Effects
    • Intro to reactivity
    • Refs
    • Signals
    • Stores
    • Understanding JSX
    • Environment variables
    • TypeScript
    • Complex state management
    • Deploy your app
      • AWS via Flightcontrol
      • AWS via SST
      • Cloudflare
      • Firebase
      • Netlify
      • Railway
      • Stormkit
      • Vercel
      • Zerops
    • Fetching data
    • Routing & navigation
    • State management
      • CSS modules
      • LESS
      • Macaron
      • SASS
      • Tailwind CSS v3
      • Tailwind CSS
      • UnoCSS
    • Styling your components
    • Testing
  • Quick start
JSX Attributes

innerHTML

Edit this page

The innerHTML attribute is equivalent to the innerHTML DOM property. This attribute replaces all existing nodes of the element with new nodes generated by parsing the provided string as HTML.

caution

Using innerHTML with unsanitized user-supplied data can introduce security vulnerabilities.

Last updated: 3/24/26, 3:52 PMReport an issue with this page
Previous← classList
Nexton:* →
On this page
  1. Overview
Contribute
  1. Edit this page
  2. Report an issue with this page