## HTMLFragment(*[SourceText](../../../aspose.html.toolkit.markdown.syntax.text/sourcetext/), [TextSpan](../../../aspose.html.toolkit.markdown.syntax.text/textspan/)*) {#htmlfragment_1}

Creates [`HTMLFragmentSyntax`](../../htmlfragmentsyntax/).

```csharp
public HTMLFragmentSyntax HTMLFragment(SourceText source, TextSpan span)
```

| Parameter | Type | Description |
| --- | --- | --- |
| source | SourceText | The SourceText. |
| span | TextSpan | The TextSpan. |

### Return Value

The HTMLFragmentSyntax.

### See Also

* class [HTMLFragmentSyntax](../../htmlfragmentsyntax/)
* class [SourceText](../../../aspose.html.toolkit.markdown.syntax.text/sourcetext/)
* struct [TextSpan](../../../aspose.html.toolkit.markdown.syntax.text/textspan/)
* class [MarkdownSyntaxFactory](../)
* namespace [Aspose.Html.Toolkit.Markdown.Syntax](../../../aspose.html.toolkit.markdown.syntax/)
* assembly [Aspose.HTML](../../../)

---

## HTMLFragment() {#htmlfragment}

Creates [`HTMLFragmentSyntax`](../../htmlfragmentsyntax/).

```csharp
public HTMLFragmentSyntax HTMLFragment()
```

### Return Value

The HTMLFragmentSyntax.

### See Also

* class [HTMLFragmentSyntax](../../htmlfragmentsyntax/)
* class [MarkdownSyntaxFactory](../)
* namespace [Aspose.Html.Toolkit.Markdown.Syntax](../../../aspose.html.toolkit.markdown.syntax/)
* assembly [Aspose.HTML](../../../)
