Authoring
HTML Basics
Bold and Italic Text
<b> creates bold text
</b> closes bold text
<i> creates italic text
</i> closes italic text
Both bold (bold) and italic (italic) text are used to show emphasis. Happily, they're two of the easiest tags to master.
To create bold text, just sandwich the word(s) you want to appear in bold with the tags <b> and </b>.
For example, you might want to say something like:
<b>Help!</b> There's a <b>Webmonkey</b> in my pants!
Which would look like this:
Help! There's a Webmonkey in my pants!
To create italics, just sandwich the words you want to appear in italic with the tags <i> and </i>. For example, you could say:
<b>Help!</b> There's a <b>Webmonkey</b> in my
pants, and I <i>really</i> don't like it!
Which will look like:
Help! There's a Webmonkey in my pants, and I really don't like it!
Occasionally, you'll see alternate tags - including <strong> and <em> - used to emphasize text; however, both of these tags may be displayed as either bold or italic, depending on the browser.
So if you want to maintain precise control over the appearance of your text, opt for the <b> or <i> tags. Conversely, if you take pleasure in uncertainty, go ahead and use <strong> or <em>.
| |