Common attributes
The following attributes can be applied to most elements.
Attribute |
Value(s) |
Description |
Availability |
|---|---|---|---|
class |
class_names |
The class attribute specifies one or more classes to which the element belongs. Classes provide a greater level of granularity when applying styles to elements. Multiple classes can be applied as a whitespace-separated list. A class can be shared by multiple instances of an element. This attribute can be applied to all elements except for <base>, <basefont>, <head>, <html>, <meta>, <param>, <script>, <style>, or <title>. |
4.6 or later |
dir |
ltr rtl |
The dir attribute specifies the directionality of text or tables in those instances where directionality is not inherently defined. The following values are valid: This attribute can be applied to all elements except for <base>, <basefont>, <bdo>, <br>, <frame>, <frameset>, <iframe>, <param>, or <script>. |
4.6 or later |
id |
text |
The id attribute specifies a unique name for an element. This attribute has several purposes:
This attribute can be applied to all elements except for <base>, <head>, <html>, <meta>, <script>, <style>, or <title>. |
4.6 or later |
lang |
language_code |
The lang attribute specifies the base language of an element’s values and text content to allow the BlackBerry® Browser to render content more meaningfully based on language cues. This attribute can be applied to all elements except for <base>, <basefont>, <br>, <frame>, <frameset>, <iframe>, <param>, or <script>. |
4.6 or later |
style |
style_list |
The style attribute applies an inline style to an element. Styles must be defined using the same syntax defined in the BlackBerry Browser CSS Reference. This attribute can be applied to all elements except for <base>, <basefont>, <head>, <html>, <meta>, <param>, <script>, <style>, or <title>. |
4.6 or later |
title |
text |
The title attribute specifies annotative information about an element or its content. This attribute can be applied to all elements except for <base>, <basefont>, <head>, <html>, <meta>, <param>, <script>, <style>, or <title>. |
4.6 or later |