HTML and CSS Reference
In-Depth Information
We strongly recommend that you carefully test your pages with more
than one browser and at several different resolutions. As you might ex-
pect, your <h6> text may be readable at 640 x 480 resolution, but may
disappear on a 1280 x 1024 display.
4.2.5. Allowed Heading Usage
Formally, the HTML and XHTML standards allow headings only within
body content. In practice, most browsers recognize headings almost
anywhere, formatting the rendered text to fit within the current ele-
ment. In all cases, the occurrence of a heading signifies the end of any
preceding paragraph or other text element, so you can't use the head-
ing tags to change font sizes in the same line. Rather, use cascading
style definitions to achieve those acute display effects. [ Inline Styles:
The style Attribute, 8.1.1 ]
4.2.6. Adding Images to Headings
It is possible to insert one or more images within your headings, from
small bullets or icons to full-size logos. Combining a consistent set of
headings with corresponding icons across a family of documents is not
only visually attractive but also an effective way of aiding users' perusal
of your document collection. [ <img>, 5.2.6 ]
Adding an image to a heading is easy. For example, the following text
puts an "information" icon inside the "For More Information" heading, as
you can see in Figure 4-6 :
<img src="info.gif">
For More Information</h2>
Search WWH ::

Custom Search