In the series I started on bbPress powered forums posts formatting, let's continue with the different tags used for that, as I said previously, most of those tags are basic HTML tags, used in all the web pages across the Internet.
First let's see the em tag, em is short for emphasis & this tag is used to make the text italic, same as the [I] tag we saw with bbCode.
The use of the em tag is simple, it has a starting part "<em>" & an ending part "</em>" (notice the forward slash "/" in the second part), both used to wrap the text we want to make italic. (we'll see an example below).
Another tag is the strong tag, this one makes the text wrapped strong or bold, it's like the [B] tag in bbCode. Same as the em tag & most of other HTML & bbCode tags, the strong tag has an opening part "<strong>" & an ending part "</strong>" to wrap the text.
Examples:
<em>This text is italic</em> & <strong>this is bold</strong>.
Will look like this in your formatted message:
This text is italic & this is bold.
You can combine the two tags to get your text italic AND bold:
<strong><em>This text is italic & bold</em></strong>.
Notice how I closed last the tag I opened first, that's very important.
Result:
This text is italic & bold.
12/27/09
Italic & Bold in bbPress - HTML Text Formating Part 5
Labels: HTML, Special-Coding, Style N Weight
at 11:04 PM
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment