# Displaying HTML Markup

## Content

**HtmlHost for Silverlight** supports displaying HTML markup. You set the **C1HtmlHost.SourceHtml** property to HTML markup that will be translated at run time; for example see the steps below.
**At Design Time**
To set the **C1HtmlHost.SourceHtml** property, complete the following steps:

1. Click the **C1HtmlHost** control once to select it.
2. Navigate to the Properties window and locate the **SourceHtml** item.
3. Enter text in the text box next to the **SourceHtml** item; for example, enter "This is \<b>HTML\</b> hosted in a Browser!".

**In XAML**
For example, to set the **C1HtmlHost.SourceHtml** property add SourceHtml to the `<c1:C1HtmlHost>` tag so that it appears similar to the following:

```xml
<c1ext:C1HtmlHost Name="c1HtmlHost1" SourceHtml="This is &lt;b&gt;HTML&lt;/b&gt; hosted in a Browser!"/>
```

For example, to set the **C1HtmlHost.SourceHtml** property, add the following code to your project:

```vbnet
Me.C1HtmlHost1.SourceHtml="This is &lt;b&gt;HTML&lt;/b&gt; hosted in a Browser!"
```

```auto
this.C1HtmlHost1.SourceHtml="This is &lt;b&gt;HTML&lt;/b&gt; hosted in a Browser!";
```

![](https://cdn.mescius.io/document-site-files/images/babf1807-69aa-4d8a-96b6-d6c6d9325368/displaying_x0020_html_x0020_markup_files/image001.png) **What You've Accomplished**
control will now display HTML text at run time. Note that in the markup above the "<" and ">" were used for the "<" and ">" symbols. So, for example a tag to make the text bold, which would normally appear like "\<b>" is written as "\<b>".

## See Also

[Hiding Frame Borders](/componentone/docs/wpf/online-extended/HtmlHost2/HtmlHostforSilverlightTaskBasedHelp/HidingFrameBorders)