# GH_HtmlWriter class

Namespace: [Grasshopper.GUI.HTML](https://developer.rhino3d.com/api/gh1/namespace/grasshopper.gui.html.md) · Assembly: [Grasshopper](https://developer.rhino3d.com/api/gh1/assembly/grasshopper.md)

```cs
public class GH_HtmlWriter
```

General purpose HTML writer.

## Constructors

- [GH_HtmlWriter](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.html.gh-htmlwriter/ctor.md): (2 overloads)

## Properties

- [CssStyleSheet](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.html.gh-htmlwriter/cssstylesheet.md): Gets the internal Css style sheet data.
- [Title](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.html.gh-htmlwriter/title.md): Gets or sets the HTML document title.

## Methods

- [ComposeHTMLDocument](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.html.gh-htmlwriter/composehtmldocument.md): (2 overloads) Compose a complete html document based on the current Title, CSS style sheet and html body content.
- [ToString](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.html.gh-htmlwriter/tostring.md)
- [WriteBlankSpace](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.html.gh-htmlwriter/writeblankspace.md): Write a blank space.
- [WriteComment](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.html.gh-htmlwriter/writecomment.md): Write a new comment to the Html document.
- [WriteDivEnd](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.html.gh-htmlwriter/writedivend.md): Write the end of a Div block.
- [WriteDivStart](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.html.gh-htmlwriter/writedivstart.md): (3 overloads) Write the start of a Div block.
- [WriteHorizontalGradient](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.html.gh-htmlwriter/writehorizontalgradient.md): Write a collection of horizontal div blocks with a gradient colour.
- [WriteHorizontalRule](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.html.gh-htmlwriter/writehorizontalrule.md): (3 overloads) Write a horizontal rule into the Html document.
- [WriteLineBreak](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.html.gh-htmlwriter/writelinebreak.md): Write a line break into the Html document. Ideally you should achieve formatting using div tags, not line breaks.
- [WriteLink](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.html.gh-htmlwriter/writelink.md): (3 overloads) Write a link to the Html document.
- [WriteListEnd](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.html.gh-htmlwriter/writelistend.md): Write the end of a List section.
- [WriteListItem](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.html.gh-htmlwriter/writelistitem.md): (3 overloads)
- [WriteListItemEnd](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.html.gh-htmlwriter/writelistitemend.md): Write the end of a list item element.
- [WriteListItemStart](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.html.gh-htmlwriter/writelistitemstart.md): (3 overloads) Write the start of a list item element.
- [WriteOrderedListStart](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.html.gh-htmlwriter/writeorderedliststart.md): (3 overloads) Write the start an unordered list section.
- [WritePreEnd](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.html.gh-htmlwriter/writepreend.md): Write the end of a Preformatted text block.
- [WritePreStart](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.html.gh-htmlwriter/writeprestart.md): (3 overloads) Write the start of a Preformatted text block.
- [WriteSpanEnd](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.html.gh-htmlwriter/writespanend.md): Write the end of a Span section.
- [WriteSpanStart](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.html.gh-htmlwriter/writespanstart.md): (3 overloads) Write the start of a Span section.
- [WriteText](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.html.gh-htmlwriter/writetext.md): (4 overloads) Write a section of text to the Html document.
- [WriteUnorderedListStart](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.html.gh-htmlwriter/writeunorderedliststart.md): (3 overloads) Write the start an unordered list section.
