XhtmlTextWriter.ElementSpecificAttributes Property
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a Hashtable object containing element-specific attributes.
protected:
property System::Collections::Hashtable ^ ElementSpecificAttributes { System::Collections::Hashtable ^ get(); };
protected System.Collections.Hashtable ElementSpecificAttributes { get; }
member this.ElementSpecificAttributes : System.Collections.Hashtable
Protected ReadOnly Property ElementSpecificAttributes As Hashtable
A Hashtable object containing element-specific attributes.
Use the AddRecognizedAttribute method to add recognized attributes to an XHTML element. To remove common attributes on an XHTML element, use the RemoveRecognizedAttribute method.
When a new instance of the XhtmlTextWriter class is created, the Hashtable object of element-specific attributes is populated with the attributes shown in the following table.
Element | Attributes |
---|---|
<a> |
accesskey , href , charset , hreflang , rel , type , rev , title , tabindex |
<base> |
href |
<blockquote> |
cite |
<br> |
id , class , title |
<form> |
action , method , enctype |
<head> |
xml:lang |
<html> |
version , xml:lang , xmlns |
<img> |
src , alt , width , longdesc , height |
<input> |
size , accesskey , title , name , type , disabled , value , src , checked , maxlength , tabindex |
<label> |
accesskey , for |
<li> |
value |
<link> |
hreflang , rev , type , charset , rel , href , media |
<meta> |
content , name , xml:lang , http-equiv , scheme |
<object> |
codebase , classid , data , standby , name , type , height , archive , declare , width , tabindex , codetype |
<ol> |
start |
<optgroup> |
label , disabled |
<option> |
selected , value |
<param> |
id , name , valuetype , value , type |
<pre> |
xml:space |
<q> |
cite |
<select> |
name , tabindex , disabled , multiple , size |
<style> |
xml:lang , xml:space , type , title , media |
<table> |
width , summary |
<textarea> |
name , cols , accesskey , tabindex , rows |
<td> |
headers , align , rowspan , colspan , axis , scope , abbr , valign |
<th> |
headers , align , rowspan , colspan , axis , scope , abbr , valign |
<title> |
xml:lang |
<tr> |
align , valign |
For more information on the elements and styles that are rendered, see the XHTML modularization specification at the World Wide Web Consortium (W3C) Web site.
Product | Versions |
---|---|
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: