know yourselves. information, computer, 7 wonders, various.

Sunday, April 17, 2016

HTML Part 023_ MARGIN ATTRIBUTE, Table Element, Table Element এর Attributes



MARGIN ATTRIBUTE
অনান্য ডকোমেন্টের মত HTML ডকোমেন্টেও top margin, bottom margin, left margin বা right margin ব্যবহার করে নির্দিষ্ট সংখ্যক Pixcels সেটিং করে দেওয়া যাবে। এই ট্যাগের ফরম্যাট হচ্ছে:
<style="margin-top:50; margin-bottom:100px;margin-right:50px; margin-left:50px;>
এছাড়া float দিয়ে এলিমেন্টকে ডানে বা বামে নেওয়া যায়। ফরম্যাট হচ্ছে:
<style="float:right;or float:left">
উদাহরণ স্বরূপ কোড হচ্ছে নিম্নরূপ:
<!DOCTYPE html>
<html>
<body>
<h1 style="color:red; margin-top:50; margin-left:50;"> This is Nova System</h1>
<p ><strong>Programing Course</p></strong>
<ol>
<l1> c/c++ programing. <br>
<l1> access programing. <br>
<l1> visual basic programing. <br>
<l1> java programing. <br>
<l1> <p style="color:red;float:right;"> flash scripting. </p>
</body> </html>
ব্রাউজার দিযে খুললে নিন্মেক্ত ফলাফল পাওয়া যাবে।
Table Element
HTML-এর টেবিল তৈরীর পব্ধতি আর লিষ্ট তৈরীর পব্ধতি অনেকটা এরকম। টেবিল তৈরীর জন্য <table> ট্যাগ ব্যবহৃত হয় এবং এই ট্যাগের অভ্যন্তরে <tr>....</tr> (Table Row) <td> ..... </td> (Table Data)এবং <th>......</th> (Table Header)  ব্যবহার করা হয়। এছাড়াও শিরোনাম দেওয়ার জন্য <caption>..... </caption> ট্যাব ক্যবহার করা হয়। টেবিলে সাধারনত Row এবং Column-এ বিভক্ত থাকে। প্রতিটি ঘরকে CELL বলে। এছাড়া প্রথম Row বা প্রথম Column টি Heading আকারে থাকতে পারে। প্রটিতি ঘরের তথ্যকেই Table Data বলে। Table Data এবং Table হেডিং মিলেই সম্পূর্ন টেবিল তৈরী হয়।
<table> এলিমেন্টের মধ্যে <tr> ব্যবহৃত হয় যতগুলি <tr> ব্যবহার করা হবে টেবিলে ততগুলি ROW থাকবে। <tr> এর মধ্যে আবার <td> ব্যবহার করে DATA লেখা হয়। যতগুলি <td> ব্যবহার করা হবে ততগুলি সেল বা ঘর তৈরী হবে।
নিচের কোডিংসহ একটি HTML ফাইল তৈরী করুন।
<!DOCTYPE html>
<html>
<body>
<table>
<tr>
<td> Nova1 </td> <td> Nova2 </td> <td> Nova3 </td> <td> Nova4 </td>
</tr>
</table>
</body>
</html>
ব্রাউজার দিযে খুললে নিন্মেক্ত ফলাফল পাওয়া যাবে।
<th-Table Heading> এবং <caption>Attributes
এই Attributes দ্বারা টেবিলের হেডিং বোঝানো হয়।
যেমন: নিচের কোডিংসহ একটি HTML ফাইল তৈরী করুন।
<!DOCTYPE html>
<html>
<body>
<table>
<caption>Table Caption </caption>
<tr>
<th>Name </th> <th> Title </th> <th> Salary </th>
</tr>
<tr>
<td>Sopnow </td> <td> Officer </td> <td> 15000 </td>
</tr>
<tr>
<td>Mebin</td> <td> Faculty </td> <td> 20000 </td>
</tr>
</table>
</body>
</html>

ব্রাউজার দিযে খুললে নিন্মেক্ত ফলাফল পাওয়া যাবে।
Table Element এর Attributes
অনান্য এলিমেন্টের মত Table এরও বিভিন্ন ধরনের Attribute আছে। যেমন Border দ্বারা টেবিল বর্ডার নির্ধারন করা যায় ফরম্যাট হচ্ছে border=number(n), width এবং height এ পিক্সেল নির্ধারন করে দেওয়া যায়। flote=দ্বারা left/right অ্যালাইন ঠিক করা যায়। style="background-color: color_name” (hex_number/rgb_number) দ্বারা ব্যাকগ্রাউন্ডে কালার বা  background=filename.jpg দ্বারা ব্যাকগ্রাউন্ডে ইমেজ, border-color দ্বারা বর্ডারের কালার এবং frame=above/below/lhs/rhs/box দ্বারা প্রতিটি সেলের বর্ডার দেওয়া যাবে।
যেমন: নিচের কোডিংসহ একটি HTML ফাইল তৈরী করুন।
<!DOCTYPE html>
<head>
<title> this is table attributes </title>
</head>
<body>
<table border="5" style="width:100px; height:50px; float:right;background-color:red;border-color:green;">
<tr>
<td>nova1 </td><td> nova2 </td> <td>
nova3 </td><td> nova4 </td>
</tr>
</table>
This is nova System. This is nova System. This is nova System. This is nova System. This is nova System. This is nova System. This is nova System. This is nova System.
</body>
ব্রাউজার দিযে খুললে নিন্মেক্ত ফলাফল পাওয়া যাবে।


Previous Post                                                                                           Next Post

  বিস্তারিত জানতে নিচের বইটি সংগরহ করে নিন।

Book Name: Mastering Microsoft  Word
Writer: Bappi Ashraf
Published By: Gyankosh Prokashani
Amount of Pages: 464
First Publish: October-2004
Last Edition: We've February-2015 edition. Future edition may be existed!
Book Price: BDT 350 (30% Discount)
 The writer of this book has told that he has written this book with the concept of "teach yourself". On the other hand, Web Design is a thing which is interesting to learn. He has also told that the book is full of fan and enjoyment so that a person can learn Web Design by himself by playing with the example projects of this book.  Book's CD Link below... 

 cd

RELATED POST LINKS BELOW ********************************************

HTML Part 022_Unordered List, Attribute Nested List, Definition List


Unordered List
Unordered লিষ্টকে Bulleted লিষ্ট ও বলে। Ordered লিষ্টে যেমন অটোমেটিক নাম্বার আসে। এখানে তেমনি বুলেট (circle=small black circles) আসে। এই ট্যাগের ফরম্যাট হচ্ছে:  <UL>...............</UL>
উদাহরণ স্বরূপ কোড হচ্ছে নিম্নরূপ:
<!DOCTYPE html>
<html>
<body>
<h1> NOVA COURSES</h1>
<p><strong>Programming Courses</p></strong>
<ul>
<li> Graphics Courses.</li>
<li> Editing Courses.</li>
<li> 2D/3D Animation Courses.</li>
</ul>
</body>
</html>

ব্রাউজার দিযে খুললে নিন্মেক্ত ফলাফল পাওয়া যাবে।
Attribute Nested List
Nested লিষ্ট এর অর্থ হচ্ছে একটি ট্যগের মধ্যে আবার ও একই ধরনের লিষ্ট ট্যাগ বা অন্য লিষ্টক ট্যাগের প্রয়োগ।
উদাহরণ স্বরূপ কোড হচ্ছে নিম্নরূপ:
<html>
<body>
<hi> NOVA COURSES</hi>
<p><strong>Programming Courses</p></strong>
<ul type="square">
     <li> Graphics Courses.
    <ul type="circle">
    <li> Photoshop.</li>
    <li> Illustrator.</li>
     <li> Page Maker.</li>
     </ul>
</li>
<li> Editing Courses.
    <ul type="disc">
<li> Premiere.
<li> Sound Forge.
     </li>
</ul>
</body>
</html>
ব্রাউজার দিযে খুললে নিন্মেক্ত ফলাফল পাওয়া যাবে।

Definition List
এটি একটি বিশেষ ধরনের লিষ্ট। এই লিষ্টের আরেকটি নাম হচ্ছে গ্লোসারী (Glossary) লিষ্ট। যখন কোন প্রোডাক্ট সম্বন্ধে বর্ণনার প্রয়োজন হয় এখন এটি ব্যবহৃত হয়। Term এবং বর্ণনা (Definition) এই দুইটি ভাগে এটি বিভক্ত এবং Term এর বিবরণ এর জন্য <dt> (defines the item in the list) এবং বর্ণনার জন্য<dd> (describes the item in the list) ট্যাগ ব্যবহৃত হয়। এই ট্যাগের ফরম্যাট হচ্ছে:
            <dl>...........................</dl>

উদাহরণ স্বরূপ কোড হচ্ছে নিম্নরূপ:
<!DOCTYPE html>
<html>
<body>
<dl>
<h2><dt> Word Processor</h2></dt>
<dd>Microsoft Word is a word processing program. It is use to Write application, News Letter, Writting Pad, etc. You can change its background color, Even though you can replace the background by a picture. </dd>
<dt><h2>Spread Sheet</h2>
<dd>Microsoft Excel is a Spread Sheet program. Its devided by Row and Column. You can make chart using Excel. You can solve any kind of arethmatic Program by using it. </dd>
</dl>
</body>
</html>


ব্রাউজার দিযে খুললে নিন্মেক্ত ফলাফল পাওয়া যাবে।


Previous Post                                                                                           Next Post

  বিস্তারিত জানতে নিচের বইটি সংগরহ করে নিন।

Book Name: Mastering Microsoft  Word
Writer: Bappi Ashraf
Published By: Gyankosh Prokashani
Amount of Pages: 464
First Publish: October-2004
Last Edition: We've February-2015 edition. Future edition may be existed!
Book Price: BDT 350 (30% Discount)
 The writer of this book has told that he has written this book with the concept of "teach yourself". On the other hand, Web Design is a thing which is interesting to learn. He has also told that the book is full of fan and enjoyment so that a person can learn Web Design by himself by playing with the example projects of this book.  Book's CD Link below... 

 cd

RELATED POST LINKS BELOW ********************************************