Tag |
End Tag |
Description |
---|---|---|
<font> |
N/A |
Font Family |
<color> |
N/A |
Text color |
<size> |
N/A |
Font size |
<b>, <strong> |
</b>, </strong> |
Bold |
<i>, <em> |
</i>, </em> |
Italic |
<u> |
</u> |
Underlined text |
<br> |
N/A |
Line break |
<p> |
</p> |
Paragraph |
<span> |
</span> |
Span. There is limited support of the style attribute and the CSS properties: font-family, font-size, color, and background-color. Refer to the example below. The Span tag is preferable to font, color, and size tags. |
<ol> |
</ol> |
Ordered list |
<ul> |
</ul> |
Unordered list |
<li> |
</li> |
List item. Defines a list item in an ordered or unordered list. |
<strike> |
</strike> |
Striked text |
Bold, italic, and underline
In the example below the first word is italic and the second one is both bold and italic. The third and the forth words are underlined.
<html> <b>some <i> text </i></b><u> some text </u> </html>
Paragraphs
<html> <p>First paragraph</p> <p>Second paragraph</p> </html>
Font color
Font color using color name e.g. red or using hex color e.g. 0000FF.
<html> <span style="color:red">font color (color name) </span> <span style="color:#0000FF">font color (hex color) </span> </html>
Font size
Absolute and relative font sizes. The valid relative values are larger and smaller. The absolute valid values are: xx-small, x-small, small, medium, large, x-large, and xx-large. The default value is medium. Font size can also be set in pt(s). The default font size in Windows Forms on most computers is 8.25pt.
<html> <span style="font-size:large">font size(absolute) </span> <span style="font-size:12">font size in pt(s) (absolute) </span> <span style="font-size:smaller">font size(absolute) </span> </html>
Highlighted text
<html><span style="background-color:red">Highlighted Text</span></html>
Font family
<html><span style="font-family:georgia">Font Family</span></html>
Striked text
<html><strike> Some text </strike></html>