# How to render HTML Markup coming from input slot?

When you want to render HTML markup code that comes from an input slot, you should use the _innerHTML_ of the target HTML element. In the logic of your elementary component, you should use _model\[SlotId]Changed_ method to access the HTML code and set it to the desired component.

Let's say you have a component with a string input slot called _html_, and you want to render this html code within a div whose id is _container_. To aim this you should code something similar to:

```javascript
...
modelHtmlChanged: function (html) {
    var container = document.querySelector('#container');
    container.innerHTML = html;
}
...
```
