টেক্সট ফরমেটিং : এইচ টি এম এল(পর্ব-৮)

টেক্সট ফরমেটিং

Microsoft Word এ Bold, Italic, Underline, strikethrough, Subscript, Superscript ইত্যাদি টেক্সট ফরমেটিং এর জন্য ব্যবহৃত হয়। HTML এর ক্ষেত্রেও Microsoft Word এর মত টেক্সট ফরমেটিং এর বিশেষ গুরুত্ব রয়েছে। একটি ডকুমেন্টকে সুন্দরভাবে উপস্থাপন করতে টেক্সট ফরমেটিং বিষয়ে উপযুক্ত জ্ঞান থাকা দরকার। HTML এ টেক্সট ফরমেটিং এর জন্য <b>, <i>, <u>, <strike>, <sub>, <sup>, <big>, <small>, <strong>, <samp>, <tt>, <abbr>, <var>, <code>, <address> ইত্যাদি ট্যাগ সমূহ ব্যবহার করা হয়।

উদাহরণ প্রোগ্রাম

<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>This is an example of Small. <br />

<strong>(Strong text)</strong>This is an example of Strong. <br />

<samp>(Sample text) </samp>This is an example of Sample. <br />

<tt>(Teletype)</tt>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 Ashim<br />

Address: www.tutohost.com<br />

E-mail:ashimkumar50@yahoo.com)</address>This is an example of Address <br />

</p>

</body>

</html>

একটা নোটপ্যাড open করে উপরের code টুকু লিখে file মেনু থেকে Save as এ ক্লিক করে File name: index.html , Save as type : All files, দিয়ে save করে index.html ফাইলটি Mozilla Firefox দিয়ে open করলে নিচে প্রদর্শিত ছবির মত দেখাবে।

এইচ টি এম এল এর সকল টিউটোরিয়াল

Leave a Comment