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

innerHTML

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 PMEdit this pageReport 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