MAMA: Common attributes
Index:
Introduction
The common attributes are those that are used across a multitude of elements. They are often attributes of critical importance to the most popular features that Web browsers have. They are listed here under the same umbrella for a single goal— when viewed together, comparing the use of these attributes with their many applicable elements can expand our understanding of an attribute itself and how/when authors tend to use it.
| Attribute | Frequency | Attribute | Frequency | |
|---|---|---|---|---|
Name |
3,220,308 | Dir |
136,997 | |
Class |
2,139,184 | Accesskey |
80,026 | |
Style |
1,878,916 | Tabindex |
49,081 | |
Id |
1,782,769 | Longdesc |
26,641 | |
Title |
1,010,147 | Disabled |
6,643 | |
Lang |
475,336 |
The Name attribute
This attribute has a number of heterogenous uses—many of them very popular.
It comes as no surprise, then, that it is very widely used; 3,220,308 of MAMA's
URLs (91.77%) carry the attribute in some fashion. Comparing the usage of
Name to the Id attribute
(which shares at least part of its functionality) demonstrates clear differences.
Name has especially deep coverage in its uses
with the META, PARAM,
MAP, and FRAME elements,
not to mention its often-paired use with Form fields. In many of these cases,
usage runs above 95%. There are also some noticeable uses with vendor-specific
attributes (such as Csaction,
Menumachine, and Cssequence)
where penetration is almost 100%—a sure sign that a program is responsible
for the attribute creation; humans just are not that reliable!
| ELEMENT | Frequency | % of Total element usage |
ELEMENT | Frequency | % of Total element usage |
ELEMENT | Frequency | % of Total element usage |
||
|---|---|---|---|---|---|---|---|---|---|---|
META |
2,710,638 | 82.73% | MAP |
456,648 | 99.72% | TABLE |
20,507 | 0.71% | ||
INPUT |
990,058 | 98.17% | FRAME |
349,820 | 92.52% | CSACTION |
17,222 | 99.99% | ||
IMG |
875,460 | 27.19% | SELECT |
275,323 | 96.48% | DIV |
17,018 | 0.68% | ||
PARAM |
576,508 | 99.97% | EMBED |
138,809 | 25.44% | OBJECT |
9,284 | 1.74% | ||
FORM |
570,643 | 54.83% | IFRAME |
87,763 | 39.45% | SPAN |
8,778 | 0.57% | ||
A |
485,168 | 14.67% | TEXTAREA |
32,500 | 89.26% | LAYER |
7,583 | 28.83% |
The Name attribute frequency
The average quantity of the Name attribute in MAMA's
URL set (when it was used) was 13.0 times. This average is a bit lower than
that of its sister attribute Id, and this is also
reflected in the extreme use cases for Name. As usual,
there is an extreme (some might say absurd, but I will not pass judgment) use
case (49,260 Name attributes in one document), with
the next-nearest neighbor falling into a very distant second
place. The full frequency table is begging
for your attention.
| URL | Name quantity |
|---|---|
| http://genforum.genealogy.com/ny/all.html/ | 49,260 |
| http://www.notisum.se/rnp/SLS/lag/19920300.htm/ | 4,614 |
| http://www.broekemasierbestrating.nl/Default.htm/ (URL no longer active) | 598 |
| http://www.BeerHatsOnline.com/ | 359 |
The Name attribute values
The list of values for this attribute can be a bit confusing, as it is a
combined value list representing all types of Name usage.
The top 15 slots are almost all from META,
and other distinct uses like PARAM,
Forms, CSIM and
hyperlink anchors stand out with high representation as well.
| Value | Frequency | Value | Frequency | Value | Frequency | ||
|---|---|---|---|---|---|---|---|
| keywords | 2,189,708 | quality | 504,666 | bgcolor | 228,085 | ||
| description | 2,100,858 | revisit-after | 475,765 | language | 215,683 | ||
| generator | 943,496 | copyright | 423,210 | top | 205,657 | ||
| robots | 937,844 | progid | 281,339 | submit | 192,095 | ||
| author | 818,017 | distribution | 236,615 | q | 182,848 | ||
| movie | 530,989 | rating | 230,894 | map | 176,556 |
The Class attribute
This attribute is used to identify document structures for use in CSS. Multiple
elements can carry the same class name, thereby allowing authors to create
arbitrary groupings to control presentation. In all, 2,139,184 of the URLs in MAMA
(60.96%) had at least one occurrence of the Class
attribute. In addition, 98.52% of URLs that use Classalso use CSS
in some manner. The value for the Class attribute is
a space-separated list of class names, but the typical usage is a single class
name—only 296,136 of the URLs using the attribute (13.84%) had any
Class value carrying more than one class name.
Elements using the Class attribute
By relative percentage, the Class attribute shows a
strong usage tendency. Block- and Form-related elements have high usage but
inline/phrasal elements usually have much lower representation.
The only real exceptions to this are hyperlinks (A),
and the SPAN element (and also, inexplicably, the
ABBR element). In fact, the generic block and inline
elements (DIV and SPAN
respectively) are among the highest relative representation of any of the elements.
On the other hand, basic structural elements like HTML
and BODY have surprisingly low relative
Class usage. Adobe GoLive's editor appears to generate
a Class attribute for its custom CSACTION
element in every page it touches.
| ELEMENT | Frequency | % of Total element usage | ELEMENT | Frequency | % of Total element usage |
ELEMENT | Frequency | % of Total element usage | ||
|---|---|---|---|---|---|---|---|---|---|---|
A | 1,111,526 | 33.61% | IMG | 320,281 | 9.95% | H2 | 93,530 | 16.32% | ||
TD | 1,082,979 | 37.45% | LI | 228,422 | 27.07% | SELECT | 90,781 | 31.81% | ||
SPAN | 1,046,840 | 68.51% | UL | 197,729 | 24.41% | H3 | 62,411 | 14.23% | ||
DIV | 1,031,384 | 41.26% | FONT | 165,186 | 8.01% | FORM | 44,247 | 4.25% | ||
P | 736,885 | 27.26% | TR | 147,474 | 5.10% | HR | 37,689 | 5.17% | ||
TABLE | 580,281 | 20.05% | BODY | 119,899 | 3.47% | B | 36,812 | 2.04% | ||
INPUT | 438,516 | 43.48% | H1 | 101,917 | 13.25% | STRONG | 31,615 | 2.87% |
The Class attribute frequency
Most pages were found to use this attribute, and did they ever! Some of the
extreme cases found employed Class attribute in impressive
quantities. Because the attribute is used as an aggregation mechanism with disparate
elements, usage in high quantities is to be expected. The average number of
Class attributes in a page (when they were used) was found
to be 48.4. The highest quantity of the attribute recorded by MAMA was 98,439 times,
but the live version at the time of writing is even higher: 102,627
times! It is a spreadsheet application—a gigantic grid of cells, each with a
Class attribute—a sure way to inflate an attribute if ever
there was one. That single case has 4 times as many Class
attributes as any other case found in MAMA. A full
frequency table of Class attribute quantities is available.
| URL | Class Quantity |
|---|---|
| http://spreadsheets.google.com/pub?key=pk_yT3zL-5Gp45a3UyKbMOA/ | 102,627 |
| http://www.amphilsoc.org/library/mole/c/chargaff.htm/ | 25,417 |
| http://rpo.library.utoronto.ca/poem/19.html/ (URL no longer active) | 15,940 |
| http://nzvillage.com/newzealand/cms/front_content.php?idcat=164/ | 13,691 |
The Class name values
In Hickson's Google research, he takes a close look at Class
attribute values. As the main editorial force behind WhatWG's and the W3C's HTML 5,
this was definitely useful and informative data to gather and examine. Hickson said
that one value of the Class attribute was "baffling"—the
value of "link". In the URLs sampled from MAMA, the
class seems to be used often in relation to hyperlinks. The obvious question then
is why an author would not just use an A or
AREA element selector instead of creating a custom class.
Well, a small sampling of URLs using this class value showed that it was applied to
structures related to a hyperlink just as often as it was applied
to a direct hyperlink itself (like being applied to a TD
table cell encapsulating nothing but a link). In such cases, using a simple CSS
Element selector would not be sufficient. Yes, other methods could be used to reference
it (and probably are—CSS selectors are not yet tracked in MAMA), but this method at
least is widely used.
The frequency table of Class attribute values compares
favorably to Hickson's Google research. In all, 15 of the top 20 values from MAMA's list
are in the top 20 from Google's list, and the top 2 values ("footer"
and "menu") are the same order in both. The most
popular value "footer" is twice as popular as its
natural companion "header"; so, could
one say that authors prefer page footers to page headers in their designs? One big
noticeable trend from the Class value list: there are a
high number of class names of the form: /style\d+/.
The popularity of each class value decreases as the integer value at the end
increases. MAMA detected values like this going at least up to
"style117" and probably higher. A high (but untested)
correlation was noticed between class names of this type and the use of Macromedia
Dreamweaver scripting library functions. As Macromedia Dreamweaver is not always
the easiest editor to detect, this correlation will remain a theory.
| Value | Frequency | Value | Frequency | Value | Frequency | ||
|---|---|---|---|---|---|---|---|
| footer | 179,528 | style2 | 89,851 | nav | 68,634 | ||
| menu | 146,673 | header | 89,274 | clear | 68,571 | ||
| style1 | 138,308 | copyright | 86,979 | search | 59,802 | ||
| msonormal | 123,374 | button | 81,503 | style4 | 56,032 | ||
| text | 122,911 | main | 69,620 | logo | 48,831 | ||
| content | 113,951 | style3 | 69,349 | body | 48,052 | ||
| title | 91,957 | small | 68,995 | left | 47,822 |
The Style attribute
This attribute is used to specify CSS at ground-level—"in the trenches" so
to speak. Using CSS in this way negates many of its broad control advantages;
styles applied only affect the current element and its descendents. In all, 1,878,916
of MAMA's URLs (53.54%) use it in some fashion. It is used most often with the
generic DIV and SPAN
elements - to be expected since these elements don't have any special intrinsic
rendering behaviors on their own. There is a noticeable authoring fondness for
using Style with Form-related elements, and Table-related
elements (although there are some exceptions with the latter, like the
TR element). Most pages use Style
with Inline/Phrasal markup elements sparingly, while its popularity with most block
elements fares much better.
| ELEMENT | Frequency | % of Total element usage | ELEMENT | Frequency | % of Total element usage | ELEMENT | Frequency | % of Total element usage | ||
|---|---|---|---|---|---|---|---|---|---|---|
DIV | 884,825 | 35.40% | INPUT | 270,155 | 26.79% | H1 | 48,767 | 6.34% | ||
SPAN | 637,422 | 41.72% | BODY | 217,890 | 6.31% | LI | 45,570 | 5.40% | ||
TD | 616,249 | 21.31% | FONT | 171,646 | 8.33% | IFRAME | 44,729 | 20.11% | ||
TABLE | 586,223 | 20.26% | FORM | 126,233 | 12.13% | BR | 44,337 | 1.46% | ||
IMG | 464,347 | 14.42% | SELECT | 77,080 | 27.01% | MARQUEE | 41,076 | 29.27% | ||
A | 462,297 | 13.98% | TR | 68,615 | 2.37% | B | 35,819 | 1.98% | ||
P | 434,288 | 16.07% | UL | 52,927 | 6.53% | H2 | 33,929 | 5.92% |
The Id attribute
This attribute is used to create a document-wide unique identifier for an element.
The Id attribute was originally meant to supercede the
use of the Name attribute, but with 1,782,769 of MAMA's
URLs (50.80%) using Id and 3,220,308 using
Name (91.77%), it is a transition that seems to be
still very much "in progress". DIV uses the Id
attribute more than twice as often as its nearest neighbors in the frequency
table, TABLE and IMG.
DIV usage of Id is also 5
times as popular as its related cousin SPAN.
IFRAME and Form-related elements have rather high
usage rates. UL representation is also quite high,
but there doesn't seem to be any obvious justification for that outcome.
Netscape 4.x's proprietary LAYER and ILAYER
elements each have over 50% relative usage of Id.
| ELEMENT | Frequency | % of Total element usage | ELEMENT | Frequency | % of Total element usage | ELEMENT | Frequency | % of Total element usage | ||
|---|---|---|---|---|---|---|---|---|---|---|
DIV | 1,085,482 | 43.42% | TD | 230,312 | 7.96% | P | 81,128 | 3.00% | ||
TABLE | 482,760 | 16.68% | UL | 192,453 | 23.76% | SELECT | 68,087 | 23.86% | ||
IMG | 471,807 | 14.65% | SPAN | 180,553 | 11.82% | MAP | 58,141 | 12.70% | ||
INPUT | 372,905 | 36.97% | OBJECT | 165,628 | 31.05% | IFRAME | 57,001 | 25.62% | ||
A | 319,619 | 9.66% | LI | 91,022 | 10.79% | H1 | 41,281 | 5.37% | ||
FORM | 266,886 | 25.64% | BODY | 90,883 | 2.63% | TR | 33,053 | 1.14% |
The Id attribute frequency
About half of the pages in MAMA used the Id attribute.
Pages that used the attribute averaged about 15.8 uses per document. As with
many other cases in MAMA, the extreme use case was unique—it used 3 times as
many Id attributes as the next-nearest URL. A
full frequency table of Id
quantities is ready for any curious readers.
| URL | Id Quantity |
|---|---|
| http://www.gibson.com/en-us/Divisions/Gibson%20Original/Gibson%20Mandolins/ | 12,084 |
| http://compas.ifrance.com/compas/ | 4,452 |
| http://cabokarate.spaces.live.com/ | 3,519 |
| http://www.townhall.com/columnists/ | 1,984 |
The Id attribute values
At first glance, it does not seem like examining these values would be interesting.
For an attribute that is supposed to contain unique values, the chances of value
overlap between URLs should be much lower than with many other attributes, right?
Not so fast. The really interesting thing to note is there is considerable overlap
in Id and Class attribute values.
"Footer" is the most popular value for each
attribute, but many of the most popular values for each attribute hold different
relative positions in the value lists. #2 on the Id list
"Content" is #6 on the Class
list, #3 on the Id list is #9 on the Class
list, and so on. Hickson's Google study only looked at Class
atcode class=tribute values, but perhaps should have looked at Id as well.
It is apparent from the top values in both Class and
Id rankings that authors continually have to work around
unfilled semantic niches in the standards.
Note: There is an interesting discrepancy between
HTML and CSS treatment of the Id value. In HTML, an
Id value must begin with a letter
([A-Za-z]), but in CSS there is no such restriction in referencing an
Id value. In theory, the HTML constraint should limit
Id values to the more limited HTML form, but browsers
are usually more forgiving and allow the CSS interpretation of an Id
value, so in "the wild" there are many cases where Id
values begin with a different character. In MAMA, 135,994 of the URLs using
Id (7.63%) had at least one value that began with a
character other than [A-Za-z].
| Value | Frequency | Value | Frequency | Value | Frequency | ||
|---|---|---|---|---|---|---|---|
| footer | 288,061 | table1 | 101,677 | wrapper | 66,730 | ||
| content | 228,661 | menu | 96,161 | top | 66,615 | ||
| header | 223,726 | layer1 | 93,920 | table2 | 57,934 | ||
| logo | 121,351 | autonumber1 | 77,350 | layer2 | 56,823 | ||
| container | 119,877 | search | 74,887 | sidebar | 52,416 | ||
| main | 106,327 | nav | 72,057 | image1 | 48,922 |
Some Id value trends
The full list of Id attribute values also points out
one other interesting tendency: The top 100 consists of repeating Id
archetypes where the value only varies by the addition of numeric counters. This
obviously indicates cases where more than one of a single type is used/expected,
such as with "table", "image",
or "menu". Of the top 100 Id
values, over half of the values consist of variations on just 7 of the Id
value substrings shown in the table below (Fig 5-4). These patterns are used over
and over and do not stop with the top 100. There are many other values that also
show templated trends, and substring values like "table"
aren't used just 10 times in the entire value list—that is just the number of
times they are used in the top 100 values. In actuality, it is used 95 times in
the Id value list (and probably more, given an exhaustive
complete list of Id values).
| Value Substring | Frequency | Value Substring | Frequency | |
|---|---|---|---|---|
| layer | 10/100 | nav | 7/100 | |
| table | 10/100 | autonumber | 6/100 | |
| image | 7/100 | main | 4/100 | |
| menu | 7/100 |
The Title attribute
This attribute is used to set "advisory information" about an element. In
practical terms, this means authors can specify any value they want. It was
found in 1,010,147 of MAMA's URLs (28.79%). It is most popular with hyperlinks
(A and AREA), as well as
the IMG and LINK elements.
Usage on TH elements eclipses the relative usage by
TD elements nearly 4:1. A few elements have
extraordinarily high usage rates: ABBR and
ACRONYM - probably because HTML 4 goes out of its
way to define special Title behavior with these
elements.
At the request of a co-worker, one extra Title-related
feature was tracked by MAMA: Newlines in the source code. Historically,
these have caused various problems in some browsers and it was hoped that
it could be useful in a testing capacity at some point down the line to track
them. Of the pages that used the Title attribute,
21,759 (2.15%) had at least 1 embedded Newline.
| ELEMENT | Frequency | % of Total element usage | ELEMENT | Frequency | % of Total element usage | ELEMENT | Frequency | % of Total element usage | ||
|---|---|---|---|---|---|---|---|---|---|---|
A | 658,820 | 19.92% | FRAME | 17,257 | 4.56% | IFRAME | 5,887 | 2.65% | ||
IMG | 367,132 | 11.40% | TD | 16,717 | 0.58% | TABLE | 5,048 | 0.17% | ||
LINK | 234,355 | 11.61% | DIV | 16,191 | 0.65% | H1 | 3,381 | 0.44% | ||
INPUT | 72,471 | 7.19% | ABBR | 14,455 | 97.00% | TH | 3,293 | 2.22% | ||
AREA | 61,137 | 13.49% | LABEL | 14,443 | 9.05% | LI | 3,163 | 0.37% | ||
OBJECT | 23,163 | 4.34% | ACRONYM | 10,329 | 94.05% | FORM | 2,864 | 0.28% | ||
SPAN | 17,942 | 1.17% | STYLE | 7,236 | 0.55% | FONT | 2,819 | 0.14% |
The Lang attribute
This attribute indicates the base language of the content. It takes as a value
RFC 1766 language codes. In
practice, some values in the full frequency table
stray from this ideal—they occasionally include encodings such as
"utf-8" and other types of "languages" (such as
"javascript1.2"). The relative usage popularity
offers a few head-scratchers: SPAN is a much more
popular user of Lang than DIV.
HTML is also quite popular—considerably higher than
application to the BODY element. Both
ACRONYM and ABBR usages
also stand out with especially high representation.
| ELEMENT | Frequency | % of Total element usage | ELEMENT | Frequency | % of Total element usage | ELEMENT | Frequency | % of Total element usage | ||
|---|---|---|---|---|---|---|---|---|---|---|
HTML | 314,584 | 9.11% | FONT | 2,423 | 0.12% | HEAD | 978 | 0.03% | ||
SPAN | 87,675 | 5.74% | DIV | 2,316 | 0.09% | ACRONYM | 770 | 7.01% | ||
META | 55,003 | 1.68% | LINK | 1,552 | 0.08% | TITLE | 626 | 0.02% | ||
BODY | 38,157 | 1.11% | P | 1,390 | 0.05% | FORM | 625 | 0.06% | ||
A | 3,830 | 0.12% | SCRIPT | 1,231 | 0.05% | ABBR | 593 | 3.98% |
The Dir attribute
This attribute is meant to give the "base direction of directionally neutral
text" for an element's content and attribute values. There are two acceptable
values, "ltr" (left-to-right) and
"rtl" (yep—right-to-left). The attribute was
detected at least once in 136,997 of the URLs MAMA analyzed (only 3.90%).
The complete list of values detected for this
attribute show some other uses not defined by HTML, aside from the usual typos
and other uninteresting noise. One use is apparently to define a base directory
("dir") associated with the element to which it is applied. However, these other usages
are absolutely trampled by the two main accepted values in terms of popularity.
The least popular of the two, "rtl" occurs more
than 100 times as much as the next nearest non-HTML value. The left-to-right
value "ltr" is more than 10 times as popular as
"rtl". Authors have a clear preference for using
this attribute on the TABLE and
HTML elements over others.
Dir attribute value popularity
| Value | Frequency |
|---|---|
| ltr | 129,893 |
| rtl | 11,321 |
Elements using the Dir attribute
The TABLE and HTML elements
show the strongest Dir attribute tendency, with the
BLOCKQUOTE element actually having the highest relative
usage. The TABLE and HTML
usages are understandable but BLOCKQUOTE may not be
as obvious. A moment's reflection reveals why—to maintain the full integrity
of a quotation, the natural language and internal direction of the content must
be preserved.
| ELEMENT | Frequency | % of Total element usage | ELEMENT | Frequency | % of Total element usage | |
|---|---|---|---|---|---|---|
TABLE | 60,922 | 2.10% | BLOCKQUOTE | 4,919 | 2.60% | |
HTML | 47,011 | 1.36% | INPUT | 1,892 | 0.19% | |
P | 14,028 | 0.52% | UL | 720 | 0.09% | |
BODY | 8,474 | 0.25% | A | 651 | 0.02% | |
TD | 7,535 | 0.26% | SELECT | 643 | 0.23% | |
SPAN | 7,085 | 0.46% | FONT | 517 | 0.03% | |
DIV | 5,592 | 0.22% | H1 | 505 | 0.07% |
The Accesskey attribute
An accesskey is supposed to be a single character used to give focus to an
element. In all, 80,026 URLs had at least one element carrying an
Accesskey attribute, but the two most popular elements
that use it are A (68.57%) and INPUT
(44.36%). Three other elements also used this attribute on a regular basis. The
full frequency table of values shows that
authors do well at restricting their values to a single character. Curiously,
the most popular character used is "s" (with no obvious rationale to its
popularity). After that, numbers dominate the list. Ten of the top 15
Accesskey values are the digits "0"-"9" (with "1"
being most popular). Looking beyond the numbers, we find that the entire English
alphabet ranks next before anything else. The top 36 spots consist of the
digits "0"-"9" and the English alphabet "a"-"z" (MAMA ignored case-sensitivity
when generating this frequency table). The INPUT and
LABEL elements seem to have a greater affinity for
the attribute than other elements, and A enjoys a
much higher relative usage rate than the analogous AREA element.
| ELEMENT | Frequency | % of Total element usage |
|---|---|---|
A | 54,876 | 1.66% |
INPUT | 35,501 | 3.52% |
LABEL | 5,330 | 3.34% |
SELECT | 601 | 0.21% |
AREA | 518 | 0.11% |
The Tabindex attribute
This attribute gives an explicit position in the tabbing order for the current
page. In MAMA, 49,081 URLs use the Tabindex attribute
at least once—usage on the INPUT element represents
over 70% of that total, while its next most-popular use on the A
element trails far behind at just over 30%. HTML 4 defines only a narrow set of
elements that can use Tabindex, but in common usage
some elements that aren't in the HTML 4 allowed set are more popular than some
of those that are—for example, IMG and DIV
usages are more popular than OBJECT and BUTTON.
A look at element-relative usage shows that authors prefer to use this
attribute with form widgets (INPUT, SELECT,
TEXTAREA and BUTTON) over other elements.
| ELEMENT | Frequency | % of Total element usage | ELEMENT | Frequency | % of Total element usage | ELEMENT | Frequency | % of Total element usage | ||
|---|---|---|---|---|---|---|---|---|---|---|
INPUT | 34,725 | 3.44% | DIV | 623 | 0.03% | LI | 308 | 0.04% | ||
A | 14,898 | 0.45% | OBJECT | 523 | 0.10% | TABLE | 279 | 0.01% | ||
SELECT | 5,282 | 1.85% | BUTTON | 464 | 4.05% | SPAN | 244 | 0.02% | ||
TEXTAREA | 1,570 | 4.31% | AREA | 384 | 0.09% | LABEL | 166 | 0.10% | ||
IMG | 1,376 | 0.04% | TD | 384 | 0.01% | IFRAME | 96 | 0.04% |
The Longdesc attribute
This attribute is a URL that should provide a "longer description" of the resource.
In MAMA, 26,641 URLs used Longdesc in some manner. Only 4 elements
were found to use this attribute in noticeable quantities: IMG,
FRAME, IFRAME and
INPUT, with the IMG usage occurring
far more than any other type (95.39% of all URLs with Longdesc
usage). All the values here should be absolute or relative URLs, but
the reality is a bit different. The full frequency
table for this attribute at first seems rather unremarkable. All of the
frequencies are quite low, indicating the unique nature of the attribute values.
What also stands out is how many of the values are definitely not
URLs, such as:
"boy hunched alone with hands in arms"
A rough estimate of the number of non-URL Longdesc
attribute values is just over 1/3.
| ELEMENT | Frequency | % of Total element usage |
|---|---|---|
IMG | 25,413 | 0.79% |
FRAME | 643 | 0.17% |
IFRAME | 362 | 0.16% |
INPUT | 251 | 0.03% |
The Disabled attribute
This attribute is not very widely used—only 6,643 URLs were detected to carry
the attribute in any capacity. The INPUT,
SELECT and OPTION elements
are where it is used most, but there are some other oddities in the list below;
how exactly does a SPAN element set to
Disabled react any differently than a SPAN
that doesn't carry the attribute?
| ELEMENT | Frequency | % of Total element usage | ELEMENT | Frequency | % of Total element usage | |
|---|---|---|---|---|---|---|
INPUT | 2,688 | 0.27% | SPAN | 106 | 0.01% | |
SELECT | 1515 | 0.53% | TEXTAREA | 79 | 0.22% | |
OPTION | 1325 | 0.47% | STYLE | 74 | 0.01% | |
A | 556 | 0.02% | IMG | 63 | 0.00% | |
LINK | 355 | 0.02% | BUTTON | 59 | 0.52% |
This article is licensed under a Creative Commons Attribution, Non Commercial - Share Alike 2.5 license.
Comments
The forum archive of this article is still available on My Opera.
No new comments accepted.