Important Notice:

Course Content
Heading Tag / Paragraph Tag
0/2
Horizontal Rules (HR element)
0/1
Font Element
0/1
Image Element
0/1
HTML Basic (Chapter 3) M2-R5.1
About Lesson
There are many types of table attribute
  • Border:-Table में चारों तरफ Border बनाने के लिए Border Attribute का इस्तेमाल किया जाता है यदि आप Table में Border दिखाना चाहते है, तो Value को “1” रखें. और यदि आप बॉर्डर नही दिखाना चाहते है, तो Value को “0” रखें।

Syntax:-<table border=value>                 ex. <table border=5>

  • Border color:-इसका उपयोग टेबल के चारों ओर बॉर्डर के color को specify करने के लिए किया जाता है।

Syntax:-<table bordercolor=color name>                    Eg. <table bordercolor=blue>

  • Heigh:-इसका उपयोग टेबल की ऊंचाई specify करने के लिए किया जाता है। इसे या तो पिक्सल के रूप में या पेज की ऊंचाई के प्रतिशत के रूप में specify किया जा सकता है।

Syntax:-<table height=value>                 Eg. <table height=60%>

  • Width:-इसका उपयोग table की चौड़ाई specify करने के लिए किया जाता है। इसे या तो पिक्सेल के रूप में या page की चौड़ाई के प्रतिशत के रूप में specify किया जा सकता है।

Syntax:-<table width=value>                    Eg. <table width=60%>

  • Align:-इसका उपयोग टेबल का अलाइनमेंट सेट करने के लिए किया जाता है. The options are: Left, Right , Center.

Syntax:-<table align=alignment>            Eg. <table align=center>

  • Bgcolor:-इसका उपयोग टेबल का बैकग्राउंड कलर सेट करने के लिए किया जाता है। Syntax:- <table bgcolor=color name> <table bgcolor=cyan>
  • Background:-इसका उपयोग किसी भी इमेज को टेबल के बैकग्राउंड के रूप में सेट करने के लिए किया जाता है।

Syntax:-<table background=location>              Eg. <table background=uma.jpg>

  • Cellspacing:-इसका उपयोग पिक्सेल के रूप में cells के बीच space को specify करने के लिए किया जाता है।

Syntax:-<table cellspacing=value>          Eg. <table cellspacing=5>

  • Cellpadding:- इसका उपयोग सेल मार्जिन यानी सेल बॉर्डर और सेल contents के बीच की जगह को specify करने के लिए किया जाता है।

Syntax:-<table cellpadding=value>                 Eg. <table cellpadding=5>

  • Frame:-इसका उपयोग border attribute के साथ यह specify करने के लिए किया जाता है कि border का कौन सा side display होगा। इसमें निम्न options हैं: above, below, lhs (left), rhs (right), box (all sides), void (no border), hsides (top and bottom), vside (left and right).

 

  • Rules:-यह border attribute के साथ प्रयोग किया जाता है यह specify करने के लिए कि inside borderका कौन सा side display होगा. इसमें निम्न options हैं: cols (column border), rows (row border), all, none

 

There are many types of table attribute.
  • Border:- it is used to display border around table. We specify the thickness of the border as number with this attribute.

Syntax:- <table border=value>                ex. <table border=5>

  • Border color:- It is used to specify the color of the border around the table.

Syntax:- <table bordercolor=color name>         Eg. <table bordercolor=blue>

  • Heigh:- It is used to set height of the table. It can be specified either in terms of pixels or as percentage of page height.

Syntax:- <table height=value>                Eg. <table height=60%>

  • Width:- It is used set width of the table. It can be specified either in terms of pixels or as percentage of page width.

Syntax:- <table width=value>                 Eg. <table width=60%>

  • Align:- It is used to set alignment for the table with respect to page. The options are: Left, Right , Center.

Syntax:- <table align=alignment>           Eg. <table align=center>

  • Bgcolor:- It is used to set background color of the table. All the cells in the table gets filled with color specified with this attribute.

Syntax:- <table bgcolor=color name>               Eg. <table bgcolor=cyan>

  • Background:- It is used to set any image as background of the table.

Syntax:- <table background=location>             Eg. <table background=uma.jpg>

  • Cellspacing:- It is used to specify the spaces between cells in terms of pixels.

Syntax:- <table cellspacing=value>                   Eg. <table cellspacing=5>

  • Cellpadding:- It is used to specify the cell margin i.e. space between cell border and the cell contents. It is also specified in terms of pixels.

Syntax:- <table cellpadding=value>                  Eg. <table cellpadding=5>

  • Frame:- it is used along with border attribute to specify which side of border will display. The options are: above, below, lhs (left), rhs (right), box (all sides), void (no border), hsides (top and bottom), vside (left and right).
  • Rules:- it is used along with border attribute to specify which side of inside border will display. The options are: cols (column border), rows (row border), all, none.
error: Content is protected !!