---
title: QuestionHtmlModel
product: Form Library
api-type: class
description: A class that describes the HTML question type.
source: https://surveyjs.io/form-library/documentation/api-reference/questionhtmlmodel
---

# `QuestionHtmlModel`

A class that describes the HTML question type. Unlike other question types, HTML cannot have a title or value.

[View Demo](https://surveyjs.io/form-library/examples/questiontype-html/ (linkStyle))

## Inheritance

[`Base`](https://surveyjs.io/form-library/documentation/api-reference/base.md) &rarr; [`SurveyElementCore`](https://surveyjs.io/form-library/documentation/api-reference/surveyelementcore.md) &rarr; [`SurveyElement`](https://surveyjs.io/form-library/documentation/api-reference/surveyelement.md) &rarr; [`Question`](https://surveyjs.io/form-library/documentation/api-reference/question.md) &rarr; [`QuestionNonValue`](https://surveyjs.io/form-library/documentation/api-reference/questionnonvalue.md) &rarr; `QuestionHtmlModel`

## Properties

### `html`

**Type**: `string`

HTML markup to display.

[View Demo](https://surveyjs.io/form-library/examples/add-html-form-field/ (linkStyle))

> If you get the markup from a third party, ensure that it does not contain malicious code.
