Επεξεργασία

Κοινή χρήση μέσω


HtmlTextWriterTag Enum

Definition

Specifies the HTML tags that can be passed to an HtmlTextWriter or Html32TextWriter object output stream.

public enum class HtmlTextWriterTag
public enum HtmlTextWriterTag
type HtmlTextWriterTag = 
Public Enum HtmlTextWriterTag
Inheritance
HtmlTextWriterTag

Fields

Name Value Description
Unknown 0

The string passed as an HTML tag is not recognized.

A 1

The HTML a element.

Acronym 2

The HTML acronym element.

Address 3

The HTML address element.

Area 4

The HTML area element.

B 5

The HTML b element.

Base 6

The HTML base element.

Basefont 7

The HTML basefont element.

Bdo 8

The HTML bdo element.

Bgsound 9

The HTML bgsound element.

Big 10

The HTML big element.

Blockquote 11

The HTML blockquote element.

Body 12

The HTML body element.

Br 13

The HTML br element.

Button 14

The HTML button element.

Caption 15

The HTML caption element.

Center 16

The HTML center element.

Cite 17

The HTML cite element.

Code 18

The HTML code element.

Col 19

The HTML col element.

Colgroup 20

The HTML colgroup element.

Dd 21

The HTML dd element.

Del 22

The HTML del element.

Dfn 23

The HTML dfn element.

Dir 24

The HTML dir element.

Div 25

The HTML div element.

Dl 26

The HTML dl element.

Dt 27

The HTML dt element.

Em 28

The HTML em element.

Embed 29

The HTML embed element.

Fieldset 30

The HTML fieldset element.

Font 31

The HTML font element.

Form 32

The HTML form element.

Frame 33

The HTML frame element.

Frameset 34

The HTML frameset element.

H1 35

The HTML H1 element.

H2 36

The HTML H2 element.

H3 37

The HTML H3 element.

H4 38

The HTML H4 element.

H5 39

The HTML H5 element.

H6 40

The HTML H6 element.

Head 41

The HTML head element.

Hr 42

The HTML hr element.

Html 43

The HTML html element.

I 44

The HTML i element.

Iframe 45

The HTML iframe element.

Img 46

The HTML img element.

Input 47

The HTML input element.

Ins 48

The HTML ins element.

Isindex 49

The HTML isindex element.

Kbd 50

The HTML kbd element.

Label 51

The HTML label element.

Legend 52

The HTML legend element.

Li 53

The HTML li element.

54

The HTML link element.

Map 55

The HTML map element.

Marquee 56

The HTML marquee element.

Menu 57

The HTML menu element.

Meta 58

The HTML meta element.

Nobr 59

The HTML nobr element.

Noframes 60

The HTML noframes element.

Noscript 61

The HTML noscript element.

Object 62

The HTML object element.

Ol 63

The HTML ol element.

Option 64

The HTML option element.

P 65

The HTML p element.

Param 66

The HTML param element.

Pre 67

The HTML pre element.

Q 68

The HTML q element.

Rt 69

The DHTML rt element, which specifies text for the ruby element.

Ruby 70

The DHTML ruby element.

S 71

The HTML s element.

Samp 72

The HTML samp element.

Script 73

The HTML script element.

Select 74

The HTML select element.

Small 75

The HTML small element.

Span 76

The HTML span element.

Strike 77

The HTML strike element.

Strong 78

The HTML strong element.

Style 79

The HTML style element.

Sub 80

The HTML sub element.

Sup 81

The HTML sup element.

Table 82

The HTML table element.

Tbody 83

The HTML tbody element.

Td 84

The HTML td element.

Textarea 85

The HTML textarea element.

Tfoot 86

The HTML tfoot element.

Th 87

The HTML th element.

Thead 88

The HTML thead element.

Title 89

The HTML title element.

Tr 90

The HTML tr element.

Tt 91

The HTML tt element.

U 92

The HTML u element.

Ul 93

The HTML ul element.

Var 94

The HTML var element.

Wbr 95

The HTML wbr element.

Xml 96

The HTML xml element.

Examples

The following example demonstrates the use of the HtmlTextWriterTag enumeration. The Img field is used during rendering of an HtmlTextWriter named writer.

// Control the encoding of attributes.
// Simple known values do not need encoding.
writer->AddAttribute( HtmlTextWriterAttribute::Alt, "Encoding, \"Required\"", true );
writer->AddAttribute( "myattribute", "No "encoding " required", false );
writer->RenderBeginTag( HtmlTextWriterTag::Img );
writer->RenderEndTag();
writer->WriteLine();
// Control the encoding of attributes. 
// Simple known values do not need encoding.
writer.AddAttribute(HtmlTextWriterAttribute.Alt, "Encoding, \"Required\"", true);
writer.AddAttribute("myattribute", "No "encoding " required", false);
writer.RenderBeginTag(HtmlTextWriterTag.Img);
writer.RenderEndTag();
writer.WriteLine();
' Control the encoding of attributes.
' Simple known values do not need encoding.
writer.AddAttribute(HtmlTextWriterAttribute.Alt, "Encoding, ""Required""", True)
writer.AddAttribute("myattribute", "No "encoding " required", False)
writer.RenderBeginTag(HtmlTextWriterTag.Img)
writer.RenderEndTag()
writer.WriteLine()

Remarks

The HtmlTextWriterTag enumeration allows the output stream to write HTML markup, along with HTML server controls, in response to a web request.

Applies to

See also