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

Sunday, April 17, 2016

HTML Part 025_Table এলিমেন্টের ট্যাগ


Table এলিমেন্টের <tbody> <thead> <tfoot> ট্যাগ
এই তিনটি ট্যাগ দ্বারা টেবিলের body, header footer নির্ধারণ করে দেওয়া যায়। এগুলি টেবিলকে কয়েকটি ভাগ করে গ্রুপ গ্রুপ করে প্রদর্শন করে। বড় ওয়েব সাইট যদি প্রিন্ট করা হয় সেক্ষেত্রে প্রতিটি পেজে <thead> <tfoot> প্রিন্ট হয়। এই ট্যাগের Format হচ্ছে ...
<tbody> ... <tbody>
<thead> ... <thead>
<tfoot> ... <tfoot>
যেমন: নিচের কোডিংসহ একটি HTML ফাইল তৈরী করুন।
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<table border="1" style="width:75%; margin:50px">
<! border="0" presents no boder and margin works for top and left>
<thead style="color:red">
<tr> <th>Month</th> <th>Savings</th> </tr> </thead>
<tfoot style="color:green"> <tr> <td>Sum</td>
<td>$180</td> </tr> </tfoot>
<tbody style="background-color:yellow;color:blue ">
<tr> <td>January</td> <td>$100</td> /tr>
    <tr>
      <td>February</td>
      <td>$80</td>
    </tr>
    
  </tbody>
</table>
</body>
</html>
Table এর Border color এবং ফাঁকা সেল Clockwise
ইতিমধ্যেই আমরা টেবিলের border color সিলেক্ট করে দিয়েছি। এই border color শুধুমাত্র টেবিলের বর্ডার নয় যে কোন border এর ক্ষেত্রেই ব্যবহৃত হয়। border-color ছাড়াও border-style (solid নাকি dashed ইত্যাদি ধরনের বর্ডার) border-width (পুরত্ত্ব)ব নির্ধারন করে দেওয়া যাবে। এছাড়া বর্ডারের চারদিক অর্থ্যাৎ top, right, bottom left আলাদা আলাদাভাবে Color, Style এবং Width সংযোজন করা যায়। এটি প্রতিটি Attributes আলাদাভাবে ডিক্লিয়ার করা যায়। আবার একটি Attribute এর সাথে পরপর Value বসিয়ে দেওয়া যায়। এক্ষেত্রে Clockwise অর্থা্যৎ প্রথমে top পরে right পরে bottom এবং শেষে left অংশে Value প্রদান করে।

Color সম্বন্ধে আর একটু আলোচনা করা যাক, কালারকে সরাসরি red, green, blue ইত্যাদি নাম লিখে দেওয়া যায অথবা hex value যেমন: rr (red) gg(green) bb(blue) এর Value লিখে দেওয়া যায় এক্ষেত্রে ০ থেকে ১০০ পর্যমত্ম কাউন্ট করে এবং ff এর অর্থ ফুল (সম্পূর্ণ ১০০%) যেমন: #00ff00 এর অর্থ red=00, green=full full এবং blue=00 অর্থাৎ শুধুমাত্র ১০০% Green দেখাবে। আবার #505050 এর অর্থ হলো red 50%, green 50% এবং blue 50% এর মিশ্রিত কালার দেখাবে।
আবার rgb value ও লিখে দেওয়া যাবে এক্ষেত্রে 0 থেকে প্রতিটি কালারের জন্য 256 টি কালার Value থাকে।  এখানে rgb লিখে ব্রাকেটের মধ্যে value দেওয়া যাবে। যেমন: rgb (255, 0, 0) অর্থ্যাৎ সম্পূর্ণ red বা rgb(255, 0, 255) অর্থ্যাৎ red blue এর 100% কালারের মিশ্রিত কালার। এখন দেখা যাক border-color কে কিভাবে top/right/left/bottom এ ডিক্লেয়ার করা যায়। Format হচ্ছে নিমণরূপ:
<style=“border-color: red>
এভাবে মোট ৪টি বর্ডার লাল কালারে দেখাবে।

<style=“border-color: red green”>
এখন Top এবং bottom হবে Red এবং Right Left হবে Green

 <style=“border-color: red green blue”>
এখন top=red, right=green, bottom=blue, left=green দেখাবে।

<style=“border-color: red  green  blue pink>
এখন Clockwise Top থেকে পর্যায়ক্রমে top-red, right=green, bottom=blue এবং left=pink কালার দেখাবে।

অথবা অন্যভাবেও দেওয়া যায়। যেমন:
border-top-color: # value(name, hex, rgb)
border-right-color: # value
border-bottom-color: # value
border-left-color: # value


যেমন: নিচের কোডিংসহ একটি HTML ফাইল তৈরী করুন।
<!DOCTYPE html>
<html>
<head>
<title> this is table border element </title>
</head>
<body>
<table  border="5" style="height:50px; width:300px;  border-color:red;">
<tr> <td>nova1 </td><td> nova2 </td> <td> nova3 </td><td> nova4 </td> </tr>
</table> <br />
<table  border="5" style="height:50px; width:300px; border-color:red green;">
<tr> <td>nova1 </td><td> nova2 </td> <td> nova3 </td><td> nova4 </td> </tr>
</table> <br />
<table  border="5" style="height:50px; width:300px;  border-color:red green blue ">
<tr> <td>nova1 </td><td> nova2 </td> <td> nova3 </td><td> nova4 </td> </tr>
</table> <br />
<table  border="5" style="height:50px; width:300px; border-color: red green blue pink;">
<tr> <td>nova1 </td><td> nova2 </td> <td> nova3 </td><td> nova4 </td> </tr>
</table> <br />

<table  border="5" style="height:50px; width:300px; border-color:#00ff00 rgb(0,0,255) #ffff00 pink; ">
<tr> <td>nova1 </td><td> nova2 </td> <td> nova3 </td><td> nova4 </td> </tr>
</table> <br />

<table  border="5" style=" height:50px; width:300px; border-style:solid; border-top-color:#0000ff; border-right-color:rgb(0,255,0); border-bottom-color:red; border-left-color:transparent; border-right-width:10px;">
<tr> <td></td> <td></td> <td></td> <td></td> </tr>
</table>
</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 024_Table এর valign Attributes



Table এর valign Attributes
valign দ্বারা সাধারণত Vertical Align বোঝানো হয়। শুধুমাত্র align দ্বারা Horizontal ব বোঝানো হয়। Vertical যদি Cell বড় হয় যেমন: height=300px। এক্ষেত্রে valign দ্বারা উপর, নিচ মাঝে বা বেইজে কনটেন্টকে অ্যালাইন করে দেওয়া যায়। সাধারণত <td>, <tr>, <th>, <tbody> ইত্যাদি ট্যাগের সাথে এই অ্যালাইন ব্যবহার করা হয়। এটির Format হচ্ছে <tbody valign=“top/middle/bottom/baseline”>, top দ্বারা উপরে, bottom দ্বারা নিচে, Middle দ্বারা সেন্টারে এবং baseline দ্বারা যদি টেক্সটের সাইজ ছোট/বড় হয় তবেও ফন্টের মূল বড়ি একটি লাইনে সাজানো থাকে।
যেমন: নিচের কোডিংসহ একটি HTML ফাইল তৈরী করুন।
<!DOCTYPE html>
<html>
<body>
<table border="1" style="width:100%; height:300px">
<tr>   <td valign="baseline"> Sopno</td> <td valign="baseline" style="font-size:150%" > Officer </td> <td align="right"> 15000</td> </tr>
<tr>   <td valign="bottom">Mebin</td> <td valign="top"> Faculty </td> <td align="right"> 20000</td>  </tr> 
<tr>   <td style="background-image:url('earth.jpg')"> Mebin</td>  
<td style= "background-image:url('coffee.jpg')"> Faculty </td> <td align="right" style= "background-image:url('taka.jpg')" > 20000</td>   </tr> 
</table
</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 ********************************************

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 ********************************************