The HTMLPlusPlus namespace contains all HTML tags, while HTMLPlusPlus.Attribute contains all attributes. These classes provide the building blocks for a web page - they can be nested to form a tree and then any part of it can be rendered recursively with Render().
Examples
var page = new HTML { new P { "Hello, World!" } }; webBrowser1.DocumentText = page.Render();
Classes
| Class | Description | |
|---|---|---|
| A | The anchor element, as in <a href=...>. The default constructor requires a string, which will become the href attribute. You can then add any element, like Text, which will be the visible text of the link. | |
| BlockElement |
This is an abstract class for all block elements.
| |
| Body |
The body tag.
| |
| Br |
The line break tag.
| |
| Dd |
The dd (definition description) tag.
| |
| Div |
The div tag.
| |
| Dl |
The dl (definition list) tag.
| |
| Document | This class represents the root document. It's purpose is mainly to allow DOCTYPE to be set. | |
| Dt |
The dt (definition term) tag.
| |
| Em |
The em (emphasis) tag.
| |
| FlowElement |
This is an abstract class for all flow elements.
| |
| H |
These are the heading tags. You can specify the level of the heading in the constructor.
| |
| Head | The head tag. | |
| Hr |
The horizontal rule tag.
| |
| HTML |
The <html> tag. All elements are added under this tag. It will automatically determine where
an element needs to be placed (head or body), depending on the child element's type.
| |
| Img |
The image tag.
| |
| InlineElement |
An abstact class for all inline elements.
| |
| Li |
The li (list item) tag.
| |
| Link | The link (external resource) tag. There are static properties that return common attributes, such as MimeType.TextJavascript or Rel.Stylesheet. | |
| Ol |
The ol (ordered list) tag.
| |
| P |
The paragraph tag.
| |
| Pre |
The preformatted text tag.
| |
| Span |
The span tag.
| |
| Strong |
The strong (bolded text) tag.
| |
| Style |
The style tag. Please look at the remarks.
| |
| Table |
The table tag.
| |
| Tag | This is the abstract base of all HTML elements. We implement the IEnumerable<(Of <(<'T>)>)> interface, so elements can be added with collection initializers and enumerated over. Concrete implementations should override ToString() and implement Add() if appropriate. | |
| Td |
The table cell tag.
| |
| Text |
This is a text literal.
| |
| Th |
The table heading tag.
| |
| Title |
The page title tag.
| |
| Tr |
The table row tag.
| |
| Ul |
The ul (unordered list) tag.
|