|
HTML Tutorial: Text
|
|
Bold ( <b> ) and Italic ( <i> ) Tags
Boldface and Italics
Begin by deleting the poetry. Replace it with these:
This is normal.<br>
<b> This is boldface </b> <br>
<i> This is italic </i> <br>
<i> <b> This is italic and boldface </b> </i> <br>
(You do know that you can copy from the browser, paste into the editor, don't you?)
You should get something like this:
Simple enough?
Other Text Styles
Here are a bunch of other text styles. They don't all work the same in all browsers so you shouldn't use them. Why am I telling you about them? Because you can define them as your own styles (an advanced, smooth move) and then they will all work as you specify.
- big (larger)
- cite (citation)
- code (monospaced program text)
- em (emphasized>
- kbd (keyboard)
- samp (samp)
- small (smaller)
- strong (like emphasized)
- tt (teletype-like)
- var (variable in code)
In this tutorial I use a custom definition of <em> in <em>index.html</em> to get index.html. All the HTML is surrounded by code tags: <code>html here</code>.
Next we'll make unordered (bulleted) and ordered (numbered or lettered) lists.