Description of all attributes of tags in HTML code

Source: Internet
Author: User

For example, write an image HTML code.

The code with this label as img already shows that there are four attributes, including src id lang alt, and its own img tag has five attributes.
Under normal circumstances, the img tag has multiple attributes? (Including objects), I will list them one by one (the above code is used as an example, and all its values are attached ), all valid and available object attributes in the IE environment are listed below. friends who are learning HTML can learn from and learn from it, or they can take it as scary,
The following test shows that there are 156 full IMG attributes, excluding the sub-attributes, and only the img Tag's .... although it seems that it is not reasonable to use IMG tags, it is indeed effective. There is no error in IE and return values. the key is to see how you use it. Except for some of the attributes that are not commonly used, they are not clear. The following are all manual inputs. It took four hours to complete. If they are useful to you, it depends on what you think. however, if you understand the following instructions, then you can read and write the website and understand the code.
If you only use less than 10 available img attributes, you can only describe your dishes .......
1 language = // language type. For example, the value of the language attribute in the <script language = "vbs"> code is vbs.
2 scrollHeight = 30 // The width of the element itself (that is, the display width)
3 isTextEdit = false // you can obtain whether to use this object to create a TextRange object
4 currentStyle = this property contains 114 objects // returns the value of the current property and cannot be changed.
5 document = This attribute contains 209 objects // Needless to say, it is a document attribute,
6 onmouseup = null // This event is triggered when you press the mouse and release the mouse.
7 oncontextmenu = null // events triggered after right-clicking
8 isMultiLine = true // whether to allow multi-line text. It is mostly used in text boxes and is used on the img label without errors, but the effect is not great.
9 clientHeight = 30 // The height of the currently visible label is 30,
10 onrowexit = null // the data source control changes the current row in this label to trigger an event, which is mostly used in form tables.
11 onbeforepaste = null // an event is triggered when the content is pasted in this tag, which is mostly used in the text box.
12 onactivate = null // when this control is triggered (clicked or focused on this label), an event occurs,
13 scrollLeft = 0 // The width of the Left Border involved
14 lang = en-us // language attribute, which is different from the language, which is equivalent to the Web language
15 onmousemove = null // an event occurs when the mouse moves over the tag.
16 onmove = null // This event is triggered when the browser window is moved
17 onselectstart = null // an event occurs when the text in the tag is selected.
18 parentTextEdit = this property contains 352 objects // another gorgeous property... Used in the framework. For details, see article 3rd.
19 oncontrolselect = null // an event is triggered when the user wants to create a control area for the object.
20 canHaveHTML = false // obtain whether the object can contain rich HTML tag values. The effect is unknown.
21 onkeypress = null // an event occurs when the keyboard is pressed,
22 oncut = null // an event is triggered when a cut event occurs in the tag, which is often used in text file labels.
23 onrowenter = null // an event occurs when the pointer of the current record is moved. This event is often used in text files,
24 onmousedown = null // triggers an event when you press the mouse
25 onpaste = null // an event is triggered when the tag is pasted.
26 className = // The style name of the current tag. This attribute is often used in combination with CSS. For example, this is used for the PW sub-directory page.
27 id = imgs // the ID of the tag
28 onreadystatechange = null // The value returned in the synchronous execution mode. The damn XML is often mixed with this.
29 onbeforedeactivate = null // triggered immediately before the current object changes to another object.
30 hideFocus = false // hide the cursor, common in text boxes
31 dir = // It defines the arrangement direction of the text in the browser. For example, if dir = LTR is displayed from left to right. If dir = LTR is displayed, It is RTL.
32 isContentEditable = false // whether the Tag Element is editable. It is often seen in the post of a Forum "WYSIWYG"
33 onkeydown = null // when a key on the keyboard is pressed
34 clientWidth = 30 // The height visible in IE
35 onlosecapture = null // an event is triggered when an object loses its Mouse capture.
36 parentElement = this property contains 495 objects // you can use another gorgeous framework to obtain the object of the parent element...
37 ondrag = null // an event occurs when the label is dragged to the end.
38 ondragstart = null // an event occurs when the label is dragged to start.
39 oncellchange = null // triggered when the data in the data supplier changes. XML is available and I have never used it.
40 recordNumber = null // obtain the original record of the object generated in the dataset. The same as above, XML is available.
41 onfilterchange = null // an event is triggered when the filter effect in the tag is changed.
42 onrowsinserted = null // an event is triggered when a new row is inserted in the current record set.
43 ondatasetcomplete = null // triggers an event when the data settings are complete. This event is often used in controls and I have never used this attribute.
44 onmousewheel = null // This is a legendary event that can be triggered with a mouse scroll...
45 ondragenter = null // an event is triggered when the mouse is dragged to this tag. It has never been used and is ineffective.
46 onblur = null // an event occurs when the tag loses focus, which is common in text boxes.
47 onresizeend = null // an event is triggered when the user changes the object size in the selected area of the control.
48 onerrorupdate = null // when an error occurs while updating the associated data in the data source object, an event is triggered on the Data Binding object. XML...
49 onbeforecopy = null // triggers an event before Replication
50 ondblclick = null // trigger an event when you double-click the mouse
51 scopeName = HTML // The namespace type defined by this element. It is not commonly used. I have never used it anyway.
52 onkeyup = null // an event is triggered when the key is released
53 onresizestart = null // The event is triggered when the window is changed.
54 onmouseover = null // trigger an event when the mouse moves out of the tag
55 onmouseleave = null // an event is triggered when the user moves the mouse pointer out of the tag boundary.
56 outerText = // used to obtain the plain text in the tag, including the start point
57 innerText = // same as above, but does not contain the start point
58 onmoveend = null // an event is triggered when the current window is moved.
59 tagName = IMG // The name of this label is a value. For example, this value is IMG.
60 title = // topic description. You have used this topic.
61 offsetWidth = 30 // The height of the visible area. Unlike clientWidth, it also contains edges.
62 onresize = null // an event is triggered when the window is changed.
63 contentEditable = inherit // whether the label can be directly edited. If it is not set to FALSE, it can be true. inherit is the default value and inherits the original setting.
64 runtimeStyle = This attribute contains 627 objects // returns the style of the label (always empty), which is different from the style and currentStyle,
65 filters = this property contains 628 objects // This is depressing and never used
66 ondrop = null // an event occurred when dragging
67 onpage = null // It is often used for online XML editing. I have never used it. I don't know the specific example.
68 onrowsdelete = null // an event is triggered when a row is to be deleted from the record set.
69 tagUrn = // set or obtain the unified resource name specified in the namespace declaration. It has never been used and should belong to a rare attribute.
70 offsetLeft = 10 // The width of the window relative to the left. It is often used for floating graph or layer display.
71 clientTop = 0 // The height of the window relative to the visible above. This is not commonly used. It is not required for normal floating effects.
72 style = this property contains 760 objects // The style attribute of this label, which is much used
73 onfocusout = null // trigger an event on the element with the current focus immediately after moving the focus to other elements ,..
74 clientLeft = 0 // The same as 71, but the value is from the left
75 ondatasetchanged = null // an event is triggered when the data in the record set is modified.
76 canHaveChildren = false // whether the label can contain sub-objects
77 ondeactivate = null // triggered when the user switches to another element, which is visible in the saving function of the Web Editor,
78 isDisabled = false // whether to interact with the tag, common in gorgeous option Effects
79 onpropertychange = null // an event occurs when the tag property is changed. This event is very useful and can be used for JS security checks.
80 ondragover = null // an event occurs when you drag the tag. It is often used to write poker games using JS.
81 onhelp = null // an event occurs when F1 or the Help button is pressed. This event can be used to customize help information, for example, on PW.
82 ondragend = null // when the drag ends, an event is triggered on the source object. This still seems to be used to write playing cards ....
83 onbeforeeditfocus = null // triggers an event before the tag is selected and edited online.
84 disabled = false // whether the content of this label is not editable, common in text boxes
85 onfocus = null // an event is triggered when the tag gets the focus. This event is often used by PW Baidu ad click plug-in... Khan...
86 behaviorUrns = this property contains 762 objects // a set of URN strings appended to the behavior of this element, which has never been used .....
87 accessKey = // specifies the keyboard shortcut for the server control. This is often used in JS web games ......
88 onscroll = null // an event occurs when the scroll bar is pulled.
89 onbeforeactivate = null // an event occurs before the control is triggered.
90 onbeforecut = null // an event occurs before the content is cut
91 readyState = uninitialized // whether it is a read-only attribute, often used in the damn XMLHTTP
92 all = this property contains 763 objects // all, which is commonly used in JS and is a global attribute of the property.
93 sourceIndex = 4 // obtain the sequential position of the object in the source order. It is a nice attribute commonly used in all sets.
94 onclick = null // an event occurs when it is hit
95 scrollTop = 0 // What is the high value of the volume?
96 oncopy = null // an event occurs when it is copied.
97 onfocusin = null // triggers an event before it is set to focus
98 tabIndex = 0 // use the "Tab" key to traverse the order, followed by numbers in order, from 0 to a large order, a great entertainment Property
99 onbeforeupdate = null // triggers an event before the associated object in the data source object is successfully updated.
100 outerHTML = // This is all the content of the current tag (including the tag). It returns HTML code and common JS stuff.
101 innerHTML = // same as above, but does not contain tags, that is, content between <and> symbols
102 ondataavailable = null // if valid data is obtained, an event is triggered, XMLHTTP .....
103 offsetHeight = 30 // visible area height, including border
104 onmovestart = null // an event is triggered when the label begins to move.
105 onmouseout = null // an event is triggered when the mouse removes the tag.
106 scrollWidth = 30 // The width of the full label
107 offsetTop = 15 // height from the top of the visible area
108 onmouseenter = null // an event occurs when the mouse is moved in.
109 onlayoutcomplete = null // LayoutRect triggers an event after the response is stopped
110 offsetParent = // This property contains 906 objects // attributes of the specified parent coordinate,... gorgeous code heap .....
111 onafterupdate = null // an event occurs when the associated object in the data source object is successfully updated.
112 ondragleave = null // triggers an event on this tag when the mouse is removed from a valid drag target during the drag operation
113 children = // This property contains 907 objects // It is an array property heap ....
114 start = fileopen // a cool B attribute that defines whether to execute the label content when an event occurs. This attribute is common in multimedia
115 firstChild = null // specify the value of the first child node of the node. It is not used in xml dom ....
116 href = http: // localhost/phpwind6/zx/6. jpg // link address in the tag
117 height = 30 // height value
118 alt = test // picture description
119 isMap = false // whether the image is a hotspot is the one with N links on the image.
120 fileModifiedDate = 04/16/2008 // you can right-click on the image to view the file modification date.
121 fileUpdatedDate = 02/13/2008 // same as above, but it is the last update date. The appearance is the same as the two in most cases.
122 dataSrc = // specify the fields bound to the specified data source of the specified object. See XML for details .....
123 onerror = null // an event is triggered when the content in the tag is loaded incorrectly.
124 hspace = 0 // set or return the blank left and right sides of the image. In combination with JS, it will be a gorgeous image effect ....
125 previussibling = null // The node that follows a node (in the same tree level) and is XML .....
126 loop = 1 // The number of media files enabled. Is this common? I did not expect to use the IMG label .....
127 protocol = Hypertext Transfer protocol // protocol type
128 lastChild = null // return the last child node in the specified node, or XML .....
129 nodeName = IMG // return the name of the tag,... it is a read-only attribute... this is the difference with TagName ....
130 nodeType = 1 // return the node type of the selected node. Still XML
131 dynsrc = // do you want to add a video before loading the music? Use this property ....
132 attributes = This attribute contains 1008 objects // attributes of the returned file or folder ...... used for detection ....
133 childNodes = This attribute contains 1009 objects // return the node list of the Child Nodes of the specified node, and an XML Array
134 src = http: // localhost/phpwind6/zx/6. jpg // Image Tag image address
135 dataworks = // XML is used to set the name of the element to be described.
136 ownerDocument = this property contains 1104 objects // The root element (Document Object) of the return node ). I have never used it. Mars .....
137 parentNode = This attribute contains 1247 objects // returns the attribute value of the parent node of the specified node, XML ....
138 onabort = null // an event occurs when it is canceled
139 fileSize = 782 // use this tool to detect the file size, in bytes
140 dataFormatAs = // It Can Be HTML or TEXT, and the appearance is used to format tag data
141 width = 30 // height value, perspiration... this common attribute is placed behind
142 ML = // if you want to learn this attribute, learn the ml language first. I don't want to learn it anyway...
143 onload = null // an event occurs when it is fully loaded.
144 align = // horizontal align attribute, which is commonly used. For example, if the center is align = center
145 useMap = // specify the name of the image map used, dedicated for IMG tags, Khan ....
146 lowsrc = // you can set or return an image address with a low resolution. Please know what a thumbnail is .....
147 fileCreatedDate = 04/16/2008 // file creation date. IMG labels are commonly used.
148 complete = false // you can check whether the image is loaded. This is cool and it is used to simulate the FLASH loading process.
149 nextSibling = This attribute contains 1260 objects // The node in the next sequence is returned in the file subnode list.
150 vspace = 0 // set or return the white space at the top and bottom of the image. It is often mixed with the heat map.
151 mimeType = JPEG image // return image type
152 nodeValue = null // The returned text represents the node's nodeType, which is often used in XML
153 nameProp = 6.jpg // obtain the file name specified by the href or src attribute of the object. It is useful to determine the validity of the address.
154 border = // the size of the border value. Do you often see an ugly box around the image? Add border = 0 to the tag.
155 longDesc = // This is used to fill in the insufficiency of the ALT attribute. You can use the text of a large segment to serve as an image description.
156 name = // similar to ID, usually used in FORM tables
Finished.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.