SlideShare a Scribd company logo
CHAPTER 4
List and Table
Handling in HTML
Part 2 – Table in HTML
Table
 Representation of information in
proper format increases degree
of understanding and facilitates
ease of its use.
 A table contains information
sequence in form of grids.
 Information can be presented in
the form of rows and columns in
a table.
Four tags in Table
 To create table <table> and </table>
 A row in a table <tr> and </tr>
 Table heading tag <th> and </th>
 Table data <td> and </td>
Border Attribute
 To create border around the whole table as well as each individual cell.
 The width of the border is given in pixel.
 Usage of border attribute is optional.
 If you use the attribute with value 0, no border will be visible.
 For example <table border=2>
Attributes of Table tag
 align
 bgcolor
 border
 cellpadding
 cellspacing
 width
 dir
 frame
Bgcolor Attribute
 To make table more attractive and colourful by adding background
colour.
 The bgcolor attribute sets the background color for the table.
 The value of this attribute is either a color name or a six digit
hexadecimal code.
Align Attribute
 To specify the alignment of the table
 Three possible value of this attribute can be left, right or center
Cellpadding Attribute
 To create a space between the edges of a cell and its contents.
 The value of this attribute specified either in pixels or as a percentage
value.
 For example <table cellpadding=“25”> or <table cellpadding=“20%”>
Cellspacing Attribute
 To create a space between the cells of the table.
 The value of this attribute specified either in pixels or as a percentage
value.
 For example <table cellspacing=25> or <table cellspacing=“20%”>
dir Attribute
 dir attribute specify the direction of the text that is displayed in the table
Width Attribute
 To specify the width of the table
 The value of this attribute specified either in pixels or as a percentage
value.
 For example <table width=50> or <table width=“50%”>
frame Attribute
 frame attribute control the outermost border of the table
Table row Tag
 The <tr> tag is used to display a row in a table.
 Three attributes of <tr> tag are:
 align
 Bgcolor
 valign
Align Attribute
 To position of the content of all of the cells in the row.
 5 possible values for the align attribute are:
left content is left aligned and this is the default case for normal text
right content is right aligned
center content is centered horizontally within the cell and this is default
case for headings
justify Text within the cell is justified to fill the cell.
char cell contents are aligned horizontally around the first instance of
a specific character.
valign Attribute
 specifies the vertical alignment of the contents of each cell in a row.
 Four possible values for the valign attribute are:
Top aligns content with the top of the cell
Middle aligns content in the center of the cell
Bottom aligns content with the bottom of the cell
Baseline aligns content so that first line of text in each cell starts on
the same horizontal line
bgcolor Attribute
 specifies the background color for selected row
Cell representation using th and td
 Each cell in a table is either represented either
by <td> or <th>. They facilitate breaking of a
row into multiple columns.
 To specify heading <th> is used and the
content of <th> is displayed in bold and center
aligned.
 To specify content of a cell <td> is used and the
content of <td> is displayed in normal and left
aligned.
 Both <td> and <th> holds the same attributes
and effects of this is limited to a single cell.
Attributes of th and td tag
abbr an abbreviated version of content of the cell.
align aligns content of the cell.
bgcolor add background to the cell
char Manages the cell content to be aligned around the first instance of the
specified character
headers Indicate corresponding headers to the cell
height Specifies height of the cell
rowspan Indicates number of rows that the cell spans across
colspan Indicate number of columns that the cell spans across
nowrap Stops text from automatically wrapping into a new line within the cell
valign Specifies vertical alignment of the cell.
width Specifies the width of the cell.
Adding caption to a table
 To give name to the table <caption> tag is used.
 <caption> My Table </caption>
Thanks for Watching

More Related Content

What's hot (20)

PPTX
Declarations
sangeetha r
 
PPTX
Excel_2007_Final.pptx
ZORAIZ HAIDER
 
PDF
Latex tables and figures
ShailajaUdtewar1
 
PPT
GPP Spreadsheets
mrcarty
 
PPT
Intro to tsql unit 9
Syed Asrarali
 
PPTX
Microsoft excel
Sunil Manchandia
 
PPTX
How to live easily with excel skills
Ha Tong
 
PDF
Squirrel do more_with_less_code_light_cheatsheet
Sudipta Mukherjee
 
PDF
Squirrel do more_with_less_code_cheat_sheet_1
Sudipta Mukherjee
 
PPT
Charts in excel
Jithin Krishnan
 
PDF
LMCC - 30 Anos
Jácome Cunha
 
PPT
How To Use vLookup for Excel
mikenobile
 
PDF
Simple Spreadsheet Tips
Inside Access
 
PPTX
Lesson
sajidamehr
 
PPTX
Charts in Microsoft Excel
Rosary High School, Vadodara
 
PDF
USING VLOOKUP FUNCTION
Ruffson Panganiban
 
PPTX
Tables, Graphs, and Charts Social Studies
Lyn Gile Facebook
 
PPTX
Vlookup Description
Vijay Perepa
 
PDF
Excel Tutorials - VLOOKUP and HLOOKUP Functions
Merve Nur Taş
 
Declarations
sangeetha r
 
Excel_2007_Final.pptx
ZORAIZ HAIDER
 
Latex tables and figures
ShailajaUdtewar1
 
GPP Spreadsheets
mrcarty
 
Intro to tsql unit 9
Syed Asrarali
 
Microsoft excel
Sunil Manchandia
 
How to live easily with excel skills
Ha Tong
 
Squirrel do more_with_less_code_light_cheatsheet
Sudipta Mukherjee
 
Squirrel do more_with_less_code_cheat_sheet_1
Sudipta Mukherjee
 
Charts in excel
Jithin Krishnan
 
LMCC - 30 Anos
Jácome Cunha
 
How To Use vLookup for Excel
mikenobile
 
Simple Spreadsheet Tips
Inside Access
 
Lesson
sajidamehr
 
Charts in Microsoft Excel
Rosary High School, Vadodara
 
USING VLOOKUP FUNCTION
Ruffson Panganiban
 
Tables, Graphs, and Charts Social Studies
Lyn Gile Facebook
 
Vlookup Description
Vijay Perepa
 
Excel Tutorials - VLOOKUP and HLOOKUP Functions
Merve Nur Taş
 

Similar to Std 10 Computer Chapter 4 List and Table Handling in HTML (Part 2 Table in HTML) (20)

PPTX
Html tables
Jagruti Ghadigaonkar
 
PPTX
Table in MS Frontpage 2003
Ann Alcid
 
PPTX
Web design - Working with tables in HTML
Mustafa Kamel Mohammadi
 
PPT
HTMLTables.ppt
ArifKamal36
 
PPTX
WEP4 and 5.pptx
MLikithMahendra
 
PPTX
Table structure introduction
nobel mujuji
 
PPTX
HTML Tables
Nisa Soomro
 
PPTX
Web topic 12 tables in html
CK Yang
 
PPTX
Method of creating table using HTML.pptx
mkrv0617
 
PPTX
Method of creating table using HTML.pptx
mkrv0617
 
PPTX
htmltables-180721142906-1.pptx
HemantBansal35
 
PPTX
Tables
savitamhaske
 
PPTX
Html tables
Himanshu Pathak
 
PPTX
v4-html-table-210321161424.pptx
HemantBansal35
 
PPTX
R Datatypes
DataminingTools Inc
 
PPTX
R Datatypes
r content
 
PPTX
nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn.pptx
Orin18
 
PPTX
Table and Form HTML&CSS
Yaowaluck Promdee
 
PPSX
Computer language - Html tables
Dr. I. Uma Maheswari Maheswari
 
PDF
Chapterrrrrrrrrrr_10_Building Tables.pdf
ankitayadavay123
 
Table in MS Frontpage 2003
Ann Alcid
 
Web design - Working with tables in HTML
Mustafa Kamel Mohammadi
 
HTMLTables.ppt
ArifKamal36
 
WEP4 and 5.pptx
MLikithMahendra
 
Table structure introduction
nobel mujuji
 
HTML Tables
Nisa Soomro
 
Web topic 12 tables in html
CK Yang
 
Method of creating table using HTML.pptx
mkrv0617
 
Method of creating table using HTML.pptx
mkrv0617
 
htmltables-180721142906-1.pptx
HemantBansal35
 
Tables
savitamhaske
 
Html tables
Himanshu Pathak
 
v4-html-table-210321161424.pptx
HemantBansal35
 
R Datatypes
DataminingTools Inc
 
R Datatypes
r content
 
nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn.pptx
Orin18
 
Table and Form HTML&CSS
Yaowaluck Promdee
 
Computer language - Html tables
Dr. I. Uma Maheswari Maheswari
 
Chapterrrrrrrrrrr_10_Building Tables.pdf
ankitayadavay123
 
Ad

More from Nuzhat Memon (20)

PPTX
Std 10 chapter 11 data type, expression and operators important MCQs
Nuzhat Memon
 
PPTX
Std 10 Chapter 10 Introduction to C Language Important MCQs
Nuzhat Memon
 
PPTX
Std 12 chapter 7 Java Basics Important MCQs
Nuzhat Memon
 
PPTX
Std 12 computer chapter 8 classes and objects in java important MCQs
Nuzhat Memon
 
PPTX
Std 12 Computer Chapter 6 object oriented concept important mcqs
Nuzhat Memon
 
PPTX
Std 12 computer chapter 6 object oriented concepts (part 1)
Nuzhat Memon
 
PPTX
Std 12 computer chapter 6 object oriented concepts (part 2)
Nuzhat Memon
 
PPTX
Std 12 computer java basics part 3 control structure
Nuzhat Memon
 
PPTX
Std 12 Computer Chapter 7 Java Basics (Part 2)
Nuzhat Memon
 
PPTX
Std 12 Computer Chapter 7 Java Basics (Part 1)
Nuzhat Memon
 
PPTX
Std 12 Computer Chapter 13 other useful free tools and services important MCQs
Nuzhat Memon
 
PPTX
Std 12 Computer Chapter 9 Working with Array and String in Java important MCQs
Nuzhat Memon
 
PPTX
Std 12 computer chapter 8 classes and object in java (part 2)
Nuzhat Memon
 
PPTX
Std 10 computer chapter 10 introduction to c language (part2)
Nuzhat Memon
 
PPTX
Std 10 computer chapter 10 introduction to c language (part1)
Nuzhat Memon
 
PPTX
Std 10 computer chapter 9 Problems and Problem Solving
Nuzhat Memon
 
PPTX
Std 11 Computer Chapter 5 Using Pictures in Synfig (Practical 3: Masking to R...
Nuzhat Memon
 
PPTX
Chapter 5 Using Pictures in Synfig (Practical 2: Masking to hide area in synfig)
Nuzhat Memon
 
PPTX
Std 11 Computer Chapter 5 Using Pictures in Synfig (Practical 1 Basics Opera...
Nuzhat Memon
 
PPTX
Std 11 Computer Chapter 4 Introduction to Layers (Part 3 Solving Textual Exe...
Nuzhat Memon
 
Std 10 chapter 11 data type, expression and operators important MCQs
Nuzhat Memon
 
Std 10 Chapter 10 Introduction to C Language Important MCQs
Nuzhat Memon
 
Std 12 chapter 7 Java Basics Important MCQs
Nuzhat Memon
 
Std 12 computer chapter 8 classes and objects in java important MCQs
Nuzhat Memon
 
Std 12 Computer Chapter 6 object oriented concept important mcqs
Nuzhat Memon
 
Std 12 computer chapter 6 object oriented concepts (part 1)
Nuzhat Memon
 
Std 12 computer chapter 6 object oriented concepts (part 2)
Nuzhat Memon
 
Std 12 computer java basics part 3 control structure
Nuzhat Memon
 
Std 12 Computer Chapter 7 Java Basics (Part 2)
Nuzhat Memon
 
Std 12 Computer Chapter 7 Java Basics (Part 1)
Nuzhat Memon
 
Std 12 Computer Chapter 13 other useful free tools and services important MCQs
Nuzhat Memon
 
Std 12 Computer Chapter 9 Working with Array and String in Java important MCQs
Nuzhat Memon
 
Std 12 computer chapter 8 classes and object in java (part 2)
Nuzhat Memon
 
Std 10 computer chapter 10 introduction to c language (part2)
Nuzhat Memon
 
Std 10 computer chapter 10 introduction to c language (part1)
Nuzhat Memon
 
Std 10 computer chapter 9 Problems and Problem Solving
Nuzhat Memon
 
Std 11 Computer Chapter 5 Using Pictures in Synfig (Practical 3: Masking to R...
Nuzhat Memon
 
Chapter 5 Using Pictures in Synfig (Practical 2: Masking to hide area in synfig)
Nuzhat Memon
 
Std 11 Computer Chapter 5 Using Pictures in Synfig (Practical 1 Basics Opera...
Nuzhat Memon
 
Std 11 Computer Chapter 4 Introduction to Layers (Part 3 Solving Textual Exe...
Nuzhat Memon
 
Ad

Recently uploaded (20)

PDF
community health nursing question paper 2.pdf
Prince kumar
 
PPT
Talk on Critical Theory, Part One, Philosophy of Social Sciences
Soraj Hongladarom
 
PDF
Chapter-V-DED-Entrepreneurship: Institutions Facilitating Entrepreneurship
Dayanand Huded
 
PDF
CONCURSO DE POESIA “POETUFAS – PASSOS SUAVES PELO VERSO.pdf
Colégio Santa Teresinha
 
PDF
The Constitution Review Committee (CRC) has released an updated schedule for ...
nservice241
 
PPTX
How to Manage Large Scrollbar in Odoo 18 POS
Celine George
 
PPTX
STAFF DEVELOPMENT AND WELFARE: MANAGEMENT
PRADEEP ABOTHU
 
PDF
Knee Extensor Mechanism Injuries - Orthopedic Radiologic Imaging
Sean M. Fox
 
PPTX
Unit 2 COMMERCIAL BANKING, Corporate banking.pptx
AnubalaSuresh1
 
PDF
Exploring the Different Types of Experimental Research
Thelma Villaflores
 
PDF
Isharyanti-2025-Cross Language Communication in Indonesian Language
Neny Isharyanti
 
PDF
The dynastic history of the Chahmana.pdf
PrachiSontakke5
 
PPTX
Growth and development and milestones, factors
BHUVANESHWARI BADIGER
 
PDF
Lesson 2 - WATER,pH, BUFFERS, AND ACID-BASE.pdf
marvinnbustamante1
 
PPTX
Universal immunization Programme (UIP).pptx
Vishal Chanalia
 
PDF
DIGESTION OF CARBOHYDRATES,PROTEINS,LIPIDS
raviralanaresh2
 
PPTX
Stereochemistry-Optical Isomerism in organic compoundsptx
Tarannum Nadaf-Mansuri
 
PDF
The-Ever-Evolving-World-of-Science (1).pdf/7TH CLASS CURIOSITY /1ST CHAPTER/B...
Sandeep Swamy
 
PPTX
How to Set Maximum Difference Odoo 18 POS
Celine George
 
PPTX
How to Set Up Tags in Odoo 18 - Odoo Slides
Celine George
 
community health nursing question paper 2.pdf
Prince kumar
 
Talk on Critical Theory, Part One, Philosophy of Social Sciences
Soraj Hongladarom
 
Chapter-V-DED-Entrepreneurship: Institutions Facilitating Entrepreneurship
Dayanand Huded
 
CONCURSO DE POESIA “POETUFAS – PASSOS SUAVES PELO VERSO.pdf
Colégio Santa Teresinha
 
The Constitution Review Committee (CRC) has released an updated schedule for ...
nservice241
 
How to Manage Large Scrollbar in Odoo 18 POS
Celine George
 
STAFF DEVELOPMENT AND WELFARE: MANAGEMENT
PRADEEP ABOTHU
 
Knee Extensor Mechanism Injuries - Orthopedic Radiologic Imaging
Sean M. Fox
 
Unit 2 COMMERCIAL BANKING, Corporate banking.pptx
AnubalaSuresh1
 
Exploring the Different Types of Experimental Research
Thelma Villaflores
 
Isharyanti-2025-Cross Language Communication in Indonesian Language
Neny Isharyanti
 
The dynastic history of the Chahmana.pdf
PrachiSontakke5
 
Growth and development and milestones, factors
BHUVANESHWARI BADIGER
 
Lesson 2 - WATER,pH, BUFFERS, AND ACID-BASE.pdf
marvinnbustamante1
 
Universal immunization Programme (UIP).pptx
Vishal Chanalia
 
DIGESTION OF CARBOHYDRATES,PROTEINS,LIPIDS
raviralanaresh2
 
Stereochemistry-Optical Isomerism in organic compoundsptx
Tarannum Nadaf-Mansuri
 
The-Ever-Evolving-World-of-Science (1).pdf/7TH CLASS CURIOSITY /1ST CHAPTER/B...
Sandeep Swamy
 
How to Set Maximum Difference Odoo 18 POS
Celine George
 
How to Set Up Tags in Odoo 18 - Odoo Slides
Celine George
 

Std 10 Computer Chapter 4 List and Table Handling in HTML (Part 2 Table in HTML)

  • 1. CHAPTER 4 List and Table Handling in HTML Part 2 – Table in HTML
  • 2. Table  Representation of information in proper format increases degree of understanding and facilitates ease of its use.  A table contains information sequence in form of grids.  Information can be presented in the form of rows and columns in a table.
  • 3. Four tags in Table  To create table <table> and </table>  A row in a table <tr> and </tr>  Table heading tag <th> and </th>  Table data <td> and </td>
  • 4. Border Attribute  To create border around the whole table as well as each individual cell.  The width of the border is given in pixel.  Usage of border attribute is optional.  If you use the attribute with value 0, no border will be visible.  For example <table border=2>
  • 5. Attributes of Table tag  align  bgcolor  border  cellpadding  cellspacing  width  dir  frame
  • 6. Bgcolor Attribute  To make table more attractive and colourful by adding background colour.  The bgcolor attribute sets the background color for the table.  The value of this attribute is either a color name or a six digit hexadecimal code. Align Attribute  To specify the alignment of the table  Three possible value of this attribute can be left, right or center
  • 7. Cellpadding Attribute  To create a space between the edges of a cell and its contents.  The value of this attribute specified either in pixels or as a percentage value.  For example <table cellpadding=“25”> or <table cellpadding=“20%”> Cellspacing Attribute  To create a space between the cells of the table.  The value of this attribute specified either in pixels or as a percentage value.  For example <table cellspacing=25> or <table cellspacing=“20%”>
  • 8. dir Attribute  dir attribute specify the direction of the text that is displayed in the table Width Attribute  To specify the width of the table  The value of this attribute specified either in pixels or as a percentage value.  For example <table width=50> or <table width=“50%”> frame Attribute  frame attribute control the outermost border of the table
  • 9. Table row Tag  The <tr> tag is used to display a row in a table.  Three attributes of <tr> tag are:  align  Bgcolor  valign
  • 10. Align Attribute  To position of the content of all of the cells in the row.  5 possible values for the align attribute are: left content is left aligned and this is the default case for normal text right content is right aligned center content is centered horizontally within the cell and this is default case for headings justify Text within the cell is justified to fill the cell. char cell contents are aligned horizontally around the first instance of a specific character.
  • 11. valign Attribute  specifies the vertical alignment of the contents of each cell in a row.  Four possible values for the valign attribute are: Top aligns content with the top of the cell Middle aligns content in the center of the cell Bottom aligns content with the bottom of the cell Baseline aligns content so that first line of text in each cell starts on the same horizontal line bgcolor Attribute  specifies the background color for selected row
  • 12. Cell representation using th and td  Each cell in a table is either represented either by <td> or <th>. They facilitate breaking of a row into multiple columns.  To specify heading <th> is used and the content of <th> is displayed in bold and center aligned.  To specify content of a cell <td> is used and the content of <td> is displayed in normal and left aligned.  Both <td> and <th> holds the same attributes and effects of this is limited to a single cell.
  • 13. Attributes of th and td tag abbr an abbreviated version of content of the cell. align aligns content of the cell. bgcolor add background to the cell char Manages the cell content to be aligned around the first instance of the specified character headers Indicate corresponding headers to the cell height Specifies height of the cell rowspan Indicates number of rows that the cell spans across colspan Indicate number of columns that the cell spans across nowrap Stops text from automatically wrapping into a new line within the cell valign Specifies vertical alignment of the cell. width Specifies the width of the cell.
  • 14. Adding caption to a table  To give name to the table <caption> tag is used.  <caption> My Table </caption>