# HTML to PowerPoint Guide Convert HTML slides into PowerPoint presentations using the `html2pptx.js` library with accurate positioning. --- ## Creating HTML Slides Each HTML slide must include the correct body dimensions: ### Layout Dimensions - **16:9** (default): `width: 720pt; height: 405pt` - **4:3**: `width: 720pt; height: 540pt` - **16:10**: `width: 720pt; height: 450pt` **CRITICAL — Prevent Overflow**: - `` must set exact dimensions via inline style: `width: 720pt; height: 405pt; margin: 0; padding: 0; overflow: hidden;` - All content must fit within these boundaries. If content overflows, split into multiple slides - Maintain at least **36pt bottom margin** inside the body for safe spacing **Fill the slide**: Content should occupy the available space well. Avoid designs where text clusters in the top third with the bottom two-thirds empty. Use generous font sizes, spacing, and visual elements to fill the canvas. ### Supported Elements - `

`, `

`-`

` — Styled text - `