All attributes of tags in html code chinese annotation Description _ Basics

Source: Internet
Author: User
Tags mixed tagname
Example: Write a picture of the HTML code

The code for IMG has already seen four properties, including src ID lang alt, plus its own IMG tag with 5 properties.
So does the IMG tag have multiple properties under normal conditions? (including objects), I'm going to list all of them (take the above code as an example and enclose all of its values), and all of the object properties that are available in the IE environment are below. Learning HTML can learn from the friends, but also can take to scare,
The following test IMG's full properties are 156, excluding child attributes, and this is just an IMG tag .... Although some seem to be used on the IMG tag is not reasonable, but it is effective use, ie error-free and has a return value. The key is to see how you use, in addition to some of the less commonly used properties are not very clear, the following are all hand-lost, spent 4 hours, It's useless for you to see what you think. However, if you understand the following instructions after the Web page beautification and understanding of the code can be literacy and DIY
The following IMG-available properties If you've only used 10 of them, you can only explain your food ....
1 language =//language type, such as <script language= "VBS" > The value of the language attribute in this code is VBS
2 scrollheight = 30//width of its own element (that is, the width of the display)
3 isTextEdit = false//Whether you can obtain an object that can create a TextRange using the object
4 Currentstyle = This property contains 114 objects//Returns the value of the current property and cannot change its value
5 Document = This property contains 209 objects//This is not to mention the document properties,
6 onmouseup = This event is triggered when a null//mouse is pressed and the mouse is released
7 OnContextMenu = events triggered after the null//mouse Point right button
8 Ismultiline = TRUE//whether to allow multiple lines of text, more for text boxes, used on the IMG tag without error, but not very effective
9 ClientHeight = 30//The height of the label currently visible is 30,
onrowexit = NULL//Data source control changes the current row within this tag to trigger an event, which is used in the form table
One onbeforepaste = null//When pasting content in this tab triggers an event that is used in a text box
OnActivate = NULL//event occurs when the control is triggered (clicked or the focus moves to the label)
ScrollLeft = 0//The width of the left border involved
Lang = en-US/The language attribute, unlike language, this is equivalent to the Web language
OnMouseMove = NULL//When the mouse moves on the label, an event occurs
The event is triggered when the window of the OnMove = NULL//browser is moved
Onselectstart = NULL//When the text in this label is selected, an event occurs
parentTextEdit = This property contains 352 objects//Another gorgeous attribute .... Used in the frame, the role is detailed in the 3rd article
Oncontrolselect = NULL//////When the user is about to make a control selection on the object
Canhavehtml = False/Get a value indicating whether the object can contain rich HTML tags, the effect is unknown
onkeypress = NULL//When an event occurs when the keyboard is pressed
Oncut = NULL//When a clipping event occurs in the label, it is often used for text file labels, I
onrowenter = NULL//When the current record pointer is moved, an event occurs, often used in a text file,
= onmousedown = NULL//Trigger an event when the mouse is pressed
Onpaste = NULL//When a paste event occurs in the label, an event is triggered
ClassName =//Current label style name, this attribute is often mixed with CSS, such as PW's post directory page with this
id = IMGS//What is the ID value of the label?
onReadyStateChange = NULL//number of values returned under synchronous execution, and damned XML is often mixed with this
Onbeforedeactivate = NULL//The current object triggers immediately before it becomes another object, as if it is not used
Hidefocus = false//Whether the cursor is hidden, common in text boxes
DIR =//It defines the direction in which text is arranged in the browser, such as dir= ltr, which is displayed from left to right instead of RTL, and the depressing effect
Iscontenteditable = false//Whether the label is editable or not, often seen in a forum post "WYSIWYG"
onkeydown = NULL//When a key is pressed on the keyboard
ClientWidth = 30///height visible in IE
Onlosecapture = NULL//Trigger an event when an object loses mouse capture
Parentelement = This property contains 495 objects//Again a gorgeous frame gets the object of the parent page element ...
Panax Notoginseng = NULL/Ondrag an event occurs when the label is dragged at the end
Ondragstart = NULL//When this label is dragged, an event occurs at the beginning
Oncellchange = NULL//Trigger when data changes in the data provider, XML usable this thing, I haven't used it.
RecordNumber = NULL//Get original record of object generated in DataSet, Ibid., XML available
onfilterchange = NULL//Trigger an event when the filter effect in the label is changed
onrowsinserted = NULL//When an event is triggered after inserting a new row in the current recordset
ondatasetcomplete = Trigger an event when NULL//Data settings are complete, often used in controls, which I have no use for.
OnMouseWheel = NULL//This is the legendary can use the mouse to scroll to trigger an event ...
OnDragEnter = NULL//When the mouse is dragged into this tag, it does not work.
onblur = NULL//When this tag loses focus, an event occurs, common in a text box
Onresizeend = NULL//Trigger an event when the user changes the size of the object in the control's check area
-onerrorupdate = NULL//update associated data in data source object to trigger an event on a data-bound object when an error occurs, XML ...
Onbeforecopy = NULL//trigger an event before copying
+ ondblclick = NULL//mouse to trigger an event when double-clicking
ScopeName = HTML//namespace type defined by this element, not used, I didn't use it anyway.
onkeyup = NULL//Trigger an event when the key is pressed and released
Onresizestart = NULL//is started to change its window big hour triggers an event
onmouseover = NULL//When the mouse moves out of the tab to trigger an event
OnMouseLeave = NULL//Trigger an event when the user moves the mouse pointer out of the label boundary
Outertext =//used to get the plain text in the label, including the starting point
InnerText =//Ibid., but does not contain the starting point
M onmoveend = NULL//The current window is moved to complete when an event is triggered
TagName = IMG/The name of this label is a value, such as the img
title =//Topic description, this is not said, we have used
Offsetwidth = 30//height of visible area, different from clientwidth, it also contains sideline
OnResize = NULL//Trigger an event when the window is resized
Contenteditable = inherit//whether the label can be directly edited, not false, can be the default value for True,inherit, inherit the original set
Runtimestyle = This property contains 627 objects//Returns the style of the label (always empty), and style differs from Currentstyle,
Filters = This property contains 628 objects//This is rather depressing, no use.
OnDrop = an event occurs when a null//is dragged
OnPage = NULL//used in XML online editing, I have no use, do not know the specific example
Onrowsdelete = NULL//To trigger an event when the row is to be deleted from the recordset
Tagurn =//Sets or gets the Uniform Resource name specified in the namespace declaration, which is not used and should be a rare attribute
Offsetleft = 10//The width of the window relative to the left, often used for floating graph or layer display
ClientTop = 0//The height of the window relatively visible from the top. This is not commonly used, where floating effects do not depend on it
The same style = This property contains 760 objects//This label has a stylistic attribute, which we all use a lot.
Onfocusout = NULL//Triggers an event on the currently focused element immediately after moving the focus to another element,..
ClientLeft = 0//71, only value is the value from the left
ondatasetchanged = NULL//Recordset when data is modified to trigger an event that is common in XML
Canhavechildren = false//whether the label can contain child objects
OnDeactivate = NULL//user switches to another element when triggered, visible in the Web page Editor's save function,
Isdisabled = false//Whether or not you can interact with the label, common to gorgeous option effects
Onpropertychange = NULL//When an event occurs when the label attribute is changed, this giant is useful and can be used for JS security checks
OnDragOver = NULL//Drag an event occurs when the label is moved, and it is often used when writing poker games with JS
Bayi onhelp = NULL//When an event occurs when a F1 or Help button is pressed, this can be used to customize help information, such as PW
Ondragend = NULL//At the end of the drag, starting an event on the source object, or feeling used to write poker ....
Onbeforeeditfocus = NULL//To trigger an event before the label is selected for editing, online editing,,, appearance is not commonly used
Disabled = false//Whether the contents of the label are prohibited for editing, common in text boxes
onfocus = NULL//When the label has the focus of triggering an event, commonly used in PW Baidu ads click Plug-ins. Sweat...
Behaviorurns = This property contains 762 objects//A set of urn strings attached to the behavior of the element, which is useless ...
AccessKey =//server control specified keyboard shortcuts, better than the JS Web game this often used, Khan die ...
An event occurs when a onscroll = NULL//scroll bar is pulled
Onbeforeactivate = an event occurs before a null//control is triggered, a commonly used
Onbeforecut = NULL//event occurs before content is cut
ReadyState = uninitialized//is read-only property, often used for the damned XMLHTTP
All = This property contains 763 objects//all this thing JS inside commonly used, is the attribute global property
Sourceindex = 4//Get the position of the object in the source order, commonly used in the all collection, is a very cool attribute
The onclick = null//When an event occurs while being hit
scrolltop = 0//What is the high value of being rolled up?
Oncopy = NULL//When an event occurs when it is replicated
Onfocusin = NULL//Trigger an event before it will be set to focus
TabIndex = 0//Using the "tab" key to the traversal order, the following number is the order, from 0 to the order, a very cool entertainment class attribute
onbeforeupdate = NULL//The event is triggered before the associated object in the data source object is successfully updated XMLHTTP
outerHTML =//This is the current label (including the label) the full content of what is, return the HTML code, JS commonly used toys
InnerHTML =//Ibid., but does not contain tags, that is, does not contain the contents between < and > two symbols
102 ondataavailable = NULL//Whenever a valid data is obtained, an event is triggered, XMLHTTP ...
Offsetheight = 30//visible area high, including border
Onmovestart = NULL//Trigger an event when this tab starts to move
onmouseout = NULL//Trigger an event when the mouse moves out of the label
ScrollWidth = 30//Full label wide value
offsettop = 15//height from top of visible area
108 Onmouseenter = NULL//mouse move event occurs
109 Onlayoutcomplete = null//layoutrect triggering an event after stopping the response
The offsetparent =//This property contains 906 objects//Specifies the properties of the parent coordinates,... Gorgeous code heap ...
onafterupdate = NULL//When an event occurs after a successful update of an associated object in a data source object
112 OnDragLeave = NULL//Trigger an event on the label when the mouse is moved out of the legal drag target during a drag operation
113 children =//This property contains 907 objects//is an array property heap ....
114 start = FileOpen//A comparison of the properties of cow B, which can be defined when an event occurs to execute the label content, common in multimedia
FirstChild = NULL//Specifies what the value of the first child node of the node is, in the XML dom .... I didn't use it.
116 href = http://localhost/phpwind6/zx/6. Link address in JPG//tags
117 height = 30//Height value
118 alt = TEST//Picture description
119 IsMap = False/Is hot picture, is a picture can have n links of the kind
Filemodifieddate = 04/16/2008//File modification date is how much, in the picture on the right button can be seen
121 Fileupdateddate = 02/13/2008//IBID., but for the last updated date, look 2 is the same in most cases
122 DATASRC =//Specify the field to bind to the given data source of the specified object, see XML Go ...
123 OnError = event is triggered when content in NULL//tag is loaded incorrectly
124 hspace = 0//Set or return the left edge of the image and the right edge of the white space, with JS and will be a gorgeous picture effects ....
PreviousSibling = NULL//node immediately preceding node (at same tree level), XML ...
126 loop = 1//The number of times the media file is opened, is this common? I never thought I'd be able to use the IMG tag ...
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 label,.. is read-only property .... This is the difference with tagname ....
130 NodeType = 1//Returns the node type of the selected node. Still XML
131 DYNSRC =//Do you want to add a picture to the music before loading it? Then use this attribute ....
132 attributes = This property contains 1008 objects//Returns the properties of the file or folder .... Used to detect the use of ....
ChildNodes = The property contains 1009 objects//A list of nodes that can return the child nodes of the specified node, and an XML array
134 src = http://localhost/phpwind6/zx/6. Picture address of JPG//Image label
135 datafld =//xml is the thing that sets the life of the element to describe.
136 Ownerdocument = This property contains 1104 objects//returns the root element (document object) of the node. I didn't use it, Mars ...
137 ParentNode = This property contains 1247 objects//Returns the attribute value of the parent node of the specified node, XML ....
138 onabort = NULL//event occurs when canceled
139 FileSize = 782//With this thing to detect file size, unit byte
140 dataFormatAs =//can be HTML or text, the view is used to format the label data
width = 30//Height value, Khan ... This common property is behind the line.
The VRML =//Want to understand this attribute, first to learn the language, I do not want to learn.
143 onload = NULL//When an event occurs when the full load is complete
144 align =//Horizontal aligned properties, this is more commonly used, such as centering is Align=center
145 usemap =//Specify the image map name used, IMG tag Special, Khan ....
146 LOWSRC =//can set or return a lower resolution picture address, know what is a thumbnail bar ...
147 filecreateddate = 04/16/2008//File creation date, IMG tags are common
148 Complete = false//can check whether the image is loaded, this cool, the loading process of imitation flash is very cool
149 NextSibling = This property contains 1260 objects//File child node list returned to the next sequence of nodes, not to mention, is the XML
vspace = 0//Sets or returns the blank at the top and bottom of the image, often fooling around with hspace
151 MimeType = JPEG image//return image type
152 NodeValue = NULL//returned text is represented by node NodeType, commonly used in XML
153 nameprop = 6.jpg//Get the name of the file specified by the href or src attribute of the object, which is useful for judging the legality of the address
154 border =//Border value size, do you often see an ugly frame around the image? Just put the border=0 in the label.
LongDesc =//This is used to complement the ALT attribute of the shortage, you can use that large paragraph of text to act as a picture description
156 name =//is similar to ID, commonly used in form table
Complete.

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.