|Lessons||Basic Text Formatting in HTML|
Making Text appear BOLD:
To make the text appear as bold just place your text between <b> and </b> tags.
<b>This text is bold</b>
This text is bold
The same effect can also be obtained by using <strong> and </strong> tags.
Making Text appear in ITALICS:
<i>This text is ITALIC</i>
The same effect can also be obtained by using <em> and </em> tags.
Output:This text is ITALIC
The text has to be surrounded by <u> and </u> tags to get it underlined.
<u>This Text is underlined</u>
This Text is underlined
To make the text appear strike through, we need to enclose it within <strike> and </strike> tags.
<strike>Strike Through Text</strike>
Writing in Type Writer Style:
<tt>This is fixed width font</tt>
This is fixed width font
Have you ever noticed that the browsers ignore extra blank space / white space characters and line spacing. However, sometimes it becomes necessary to add extra spacing between text and lines. The solution is the <pre> tag. Everything enclosed within <pre> and </pre> tags appear as preformatted.
<pre>This text is pre formated</pre>Output:
This text is pre formated
Next >>> Lesson No. 4: Basic Text Formatting in HTML 2