Things you want to know about websites

 

Formatting

Lets talk about the basic text formatting used in html.

Bold

To make your text bold you use <b> tag.

Example

<b> This is blod text. </b>

gives you,

This is bold text.

In most browsers <strong> tag also gives you bold text.

Italic

To make you text italic you use <i> tag.

Example

<i>This is italic text. </i>

gives you,

This is italic text.

In most browsers <em> tag also gives you itlaic text.

Preformatted text

To keep the original line spacing and line breaks in you text, you can use the <pre> tag.

Example

<pre>This is a preformatted text.
 It will maintain white spaces    and line breaks.</pre>

gives you,

This is a preformatted text.
 It will maintain white spaces    and line breaks.

Other formatting tags

Among many other formatting elements in html, some of the useful are,

<center> Centers text on the screen.
<big> Makes text bigger.
<small> Makes text smaller.
<sub> Defines subscripts.
<sup> Defines superscripts.
<ins> Shows inserted text.
<del> Shows deleted text.
<code> Defines computer code.
<abbr> Defines abbreviations.
<acronym> Defines accronyms.
<blockquote> Defines Block level quote.
<q> Defines inline quote.

Bookmark or Add to Favourites

Next:

Html-Links

Related:

Html-Heading
Html-Paragraphs

Link to this page :

Copy and paste the following code in an html document to link to this page,