![]() |
|
Basic Text Formatting in HTML, Free online HTML Tutorial, Learn HTML online for free... |
| 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> Output: 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 ITALICUnderlining Text: The text has to be surrounded by <u> and </u> tags to get it underlined. <u>This Text is underlined</u> Output: 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> Output:
Writing in Type Writer Style: <tt>This is fixed width font</tt> Output: This is fixed width font Preformatted Text: 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
|