HTML and CSS Reference
In-Depth Information
4.5.12. The dir and lang Attributes
The dir attribute lets you advise the browser in which direction the text
within the physical tag should be displayed, and lang lets you specify
the language used within the tag. [ The dir attribute, 3.6.1.1 ] [ The lang
attribute, 3.6.1.2 ]
4.5.13. The class, style, id, and title Attributes
Although each physical tag has a defined style, you can override that
style by defining your own look for each tag. You can apply this new look
to the physical tags using either the style or the class attribute. [ Inline
Styles: The style Attribute, 8.1.1 ] [ Style Classes, 8.3 ]
You also may assign a unique ID to the physical style tag, as well as
a less rigorous title, using the respective attribute and accompanying
quote-enclosed string value.[ The id attribute, 4.1.1.4 ] [ The title attrib-
ute, 4.1.1.5 ]
4.5.14. Event Attributes
As with content-based style tags, user-initiated mouse and keyboard
events can happen in and around a physical style tag's contents. The
browser recognizes many of these events if it conforms to current stand-
ards, and with the respective on attribute and value, you may react to
the event by displaying a user dialog box or activating some multimedia
event. [ JavaScript Event Handlers, 12.3.3 ]
4.5.15. Summary of Physical Style Tags
The various graphical browsers render text inside the physical style tags
in a similar fashion. Table 4-2 summarizes these browsers' display styles
for these tags. Stylesheet definitions may override these native display
styles.
 
Search WWH ::




Custom Search