Thursday, August 31, 2017

Text Formatting

Text formatting

Microsoft Word is used for text formatting, Bold, Italic, Underline, strikethrough, Subscript, Superscript etc. In the case of HTML, text formatting like Microsoft Word has special significance. To properly present a document, it is necessary to have a sound knowledge about text formatting. For text formatting in HTML, <b>, <i>, <u>, <strike>, <sub>, <sup>, <big>, <small>, <strong>, <samp>, <tt>, <Abbr>, <var>, <code>, <address>, etc. tags are used.

Example Programs
<Html>
<Head>
<Title> www.tutohost.com </ title>
</ Head>
<Body bgcolor = "green">

<P>
<B> (Bold) </ b> this is an example of bold. <br />
<I> (Italic) </ i> This is an example of Italic <br />
<U> (Underline) </ u> This is an example of Underline. <br />
<Strike> (Strike) </ strike> This is an example of Strike <br />
(CO <sub> 2 </ sub>) This is an example of Subscript. <br />
(E = MC <sup> 2 </ sup>) This is an example of Superscript. <br />
<Big> (Big text) </ big> This is an example of Big <br />
<Small> (Small text) </ small> <br />
<Strong> (Strong text) </ strong> This is an example of Strong. <br />
<Sample> (Sample text) </ samp> This is an example of Sample. <br />
<Tt> (Teletype) This is an example of Teletype <br />
(<Abbr> U.N.O </ abbr> United Nations Organization.) This is an example of abbreviation. <br />
(<Var> x </ var> is a variable.) This is an example of Variable <br />
(<Code> Computer code text. </ Code>) This is an example of Code. <br /> <address>
(Written by Mamun <br />
Address: www.dolohost.com <br />
E-mail: abdullaalmamunbd8@gmail.com) </ address> This is an example of Address <br />
</ P>

</ Body>
</ Html>

Open a Notepad and by typing the code above and clicking Save as from the file menu, save as file name: index.html, Save as type: All files, open the index.html file with Mozilla Firefox and look like the image shown below.

No comments:

Post a Comment

Flash Addition Tags

Flash Addition One of the most interesting elements of the Flash Animation Web site. Attractive navigation bars, banners, buttons, etc. t...