By default, text on a Web page is displayed with the default
style. It is not boldface, it is not italicized, and it is not underlined. If
you want to use any of these text effects, you have to include the proper HTML
tags. They are
<b>, <i>
and <u>:<b>This will be boldface.</b> <i>This text will be italicized.</i> <u>This text will be underlined.</u>
The
<u> tag is not supported in XHTML.
You can use styles to underline text, but many people
believe it is avoid underlining text because the user may confuse it with a
hyperlink. These tags can be combined to get the effect you want. Here’s an
example:
<p>You can combine <b>boldface</b> and <i> italics.</i></p>
The preceding line of code result like this:
You can combine boldface and italics.
0 comments:
Post a Comment