Tuesday, September 14, 2010

The big and small elements

The big and small elements are used to increase and decrease the size of inline text (even
text defined in pixels in CSS). An example of the use of small might be in marking up text
that is semantically small print. An example of big might be to denote that a drop cap is a
big character, or for when adding asterisks to required form fields.
<input type="text" name="realname" size="30" /> <big>*</big>
Note, however, that the change in size depends on individual web browsers, so it’s often
better to use span elements with a specific class relating to a font size defined in CSS (see
the section “Creating alternatives with classes and spans” later in the chapter), or ensure
that you define specific values in CSS for small and big elements when used in context.

No comments:

Post a Comment