HTML and CSS Reference
In-Depth Information
ample, use the title attribute to provide helpful tips within your docu-
ment. The class and style attributes
Use the style attribute with the <div> tag to create an inline style for
the content enclosed by the tag. The class attribute lets you apply the
style of a predefined class of the <div> tag to the contents of this di-
vision. The value of the class attribute is the name of a style defined
in some document-level or externally defined stylesheet. In addition,
class-identified divisions lend themselves well to computer processing
of your documents; for example, extracting all divisions with the class
name "biblio," for the automated assembly of a master bibliography.
[ Inline Styles: The style Attribute, 8.1.1 ] [ Style Classes, 8.3 ] Event attributes
Many user-related events may happen in and around a division, such as
when a user clicks or double-clicks the mouse within its display space.
The browser recognizes these events if it conforms to the current HTML
or XHTML standard (all the popular ones do). With the respective on
attribute and value, you may react to those events by displaying a
user dialog box or activating some multimedia event. [ JavaScript Event
Handlers, 12.3.3 ]
4.1.2. The <p> Tag
The <p> tag signals the start of a paragraph. That's not well known even
by some veteran webmasters, because it runs counterintuitive to what
we've come to expect from experience. Most word processors we're fa-
miliar with use just one special character, typically the return charac-
ter, to signal the end of a paragraph, not the beginning. By contrast,
in HTML and XHTML, each paragraph should start with the paragraph
tag <p> and end with the corresponding </p> end tag. Moreover, while a
Search WWH ::

Custom Search