Beginning HTML

Formatting Text

As beautiful as our first page was, I reckon there's still room for improvement. I've already mentioned the <b></b> tag pair and there are plenty more that are used in a similar way. Here's a list:

Name HTML Effect
Bold Some <b>Text</b> Here Some Text Here
Italic Some <i>Text</i> Here Some Text Here
Underline Some <u>Text</u> Here Some Text Here
Strikethrough Some <s>Text</s> Here Some Text Here
Subscript Some <sub>Text</sub> Here Some Text Here
Superscript Some <sup>Text</sup> Here Some Text Here
Keyboard Some <kbd>Text</kbd> Here Some Text Here
Typewriter Some <tt>Text</tt> Here Some Text Here

Try experimenting with a few of these and see how they work.

Hmm, but what if you want bold and italic. To do this, you need to combine the tags like this:

This text is <b><i>bold and italic</i></b>.

You can use as many tags together as you like to allow you to get the effect that you desire.

You might also like...

Comments

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“The first 90% of the code accounts for the first 90% of the development time. The remaining 10% of the code accounts for the other 90% of the development time.” - Tom Cargill