text-based browsers, such as lynx and those associated with
wireless devices, can’t render bold, italic, or other styled text. They
generally highlight the text in some way, but the method varies depending on
the browser and platform.
You can nest character tags-for example, using both bold and
italic for a set of characters-as follows:
<b><i>text that is both bold and
italic</i></b>
However, the result on the screen is browser-dependent, like
all HTML tags. You weren’t necessarily end up with text that’s both bold and
italic. You mi9ght end up with one style or the other:
INPUT
<p>in Dante’s <i> inferno<i> Malaboge was the
eighth circle of hell, and held the malicious and fraudulent. </p>
<p> all entries must be received by <b>
September 26, 1999</b>. </p>
<p> type <tt>lpr- pbirch my file.
Text</text</tt>to print that file.</p>
<p>sign your name in the spot marked <u>sign
here</u>:,/p>
<p>RCKP floor mats give you <big>
big</big> savings over the competition!<p>
<p> then, from the corner of the room, he chard a
<small> tinny voice </small>,.</p>
<p> in heavy trading today. Consolidated orange trucking
rose <sup>1</sup>/<sup>4</p>
Points on volume of
1,457, 900 shares. </p>
Figure 6.2 shows some of the physical tags and how they
appear.
OUTPUT
CHARACTER FORMATTING USING CSS
You’ve already seen how styles can be used to modify the
appearance of various elements. Any of the effect associated with the tags
introduced in today lesson can also be
creates using CSS. Before I GO into these properties, however, i want TO talk a
bit about how to use them. as I’ve said before, the style attribute can be used
with most tags however, most tags somehow affect the appearance of the text
that they enclose. There’s a tag that doesn’t have any inherent effect on the
text that it’s wrapped around: the <span> tag. It exists so lye to be
associated with style sheets. It’s used exactly like any of the other tags
you’ve seen today. Simply wrap it around some text, like this:
<p> this is an example of the <span> usage of
the span tag</span>.</p>
Used by itself, the <span> tag has absolutely no
effect. Paired with the style attribute, it can take the place of any of the
tags you’ve seen today and can do a lot more than that as well.
No comments:
Post a Comment