SlideShare a Scribd company logo
1 of 15
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

GPP Spreadsheets
GPP SpreadsheetsGPP Spreadsheets
GPP Spreadsheets
mrcarty
 
Intro to tsql unit 9
Intro to tsql   unit 9Intro to tsql   unit 9
Intro to tsql unit 9
Syed Asrarali
 
How To Use vLookup for Excel
How To Use vLookup for ExcelHow To Use vLookup for Excel
How To Use vLookup for Excel
mikenobile
 

What's hot (20)

Declarations
DeclarationsDeclarations
Declarations
 
Excel_2007_Final.pptx
Excel_2007_Final.pptxExcel_2007_Final.pptx
Excel_2007_Final.pptx
 
Latex tables and figures
Latex tables and figures Latex tables and figures
Latex tables and figures
 
GPP Spreadsheets
GPP SpreadsheetsGPP Spreadsheets
GPP Spreadsheets
 
Intro to tsql unit 9
Intro to tsql   unit 9Intro to tsql   unit 9
Intro to tsql unit 9
 
Microsoft excel
Microsoft excelMicrosoft excel
Microsoft excel
 
Exel
ExelExel
Exel
 
How to live easily with excel skills
How to live easily with excel skillsHow to live easily with excel skills
How to live easily with excel skills
 
Squirrel do more_with_less_code_light_cheatsheet
Squirrel do more_with_less_code_light_cheatsheetSquirrel do more_with_less_code_light_cheatsheet
Squirrel do more_with_less_code_light_cheatsheet
 
Squirrel do more_with_less_code_cheat_sheet_1
Squirrel do more_with_less_code_cheat_sheet_1Squirrel do more_with_less_code_cheat_sheet_1
Squirrel do more_with_less_code_cheat_sheet_1
 
Charts in excel
Charts in excelCharts in excel
Charts in excel
 
LMCC - 30 Anos
LMCC - 30 AnosLMCC - 30 Anos
LMCC - 30 Anos
 
How To Use vLookup for Excel
How To Use vLookup for ExcelHow To Use vLookup for Excel
How To Use vLookup for Excel
 
Simple Spreadsheet Tips
Simple Spreadsheet TipsSimple Spreadsheet Tips
Simple Spreadsheet Tips
 
Lesson
LessonLesson
Lesson
 
Charts in Microsoft Excel
Charts in Microsoft ExcelCharts in Microsoft Excel
Charts in Microsoft Excel
 
USING VLOOKUP FUNCTION
USING VLOOKUP FUNCTIONUSING VLOOKUP FUNCTION
USING VLOOKUP FUNCTION
 
Tables, Graphs, and Charts Social Studies
Tables, Graphs, and Charts Social StudiesTables, Graphs, and Charts Social Studies
Tables, Graphs, and Charts Social Studies
 
Vlookup Description
Vlookup DescriptionVlookup Description
Vlookup Description
 
Excel Tutorials - VLOOKUP and HLOOKUP Functions
Excel Tutorials - VLOOKUP and HLOOKUP FunctionsExcel Tutorials - VLOOKUP and HLOOKUP Functions
Excel Tutorials - VLOOKUP and HLOOKUP Functions
 

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

Table in MS Frontpage 2003
Table in MS Frontpage 2003Table in MS Frontpage 2003
Table in MS Frontpage 2003
Ann Alcid
 
Web topic 12 tables in html
Web topic 12  tables in htmlWeb topic 12  tables in html
Web topic 12 tables in html
CK Yang
 
4.3 table styling
4.3 table styling4.3 table styling
4.3 table styling
Bulldogs83
 

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

Html tables
Html tablesHtml tables
Html tables
 
Table in MS Frontpage 2003
Table in MS Frontpage 2003Table in MS Frontpage 2003
Table in MS Frontpage 2003
 
Web design - Working with tables in HTML
Web design - Working with tables in HTMLWeb design - Working with tables in HTML
Web design - Working with tables in HTML
 
HTMLTables.ppt
HTMLTables.pptHTMLTables.ppt
HTMLTables.ppt
 
WEP4 and 5.pptx
WEP4 and 5.pptxWEP4 and 5.pptx
WEP4 and 5.pptx
 
Table structure introduction
Table structure introductionTable structure introduction
Table structure introduction
 
HTML Tables
HTML TablesHTML Tables
HTML Tables
 
Web topic 12 tables in html
Web topic 12  tables in htmlWeb topic 12  tables in html
Web topic 12 tables in html
 
htmltables-180721142906-1.pptx
htmltables-180721142906-1.pptxhtmltables-180721142906-1.pptx
htmltables-180721142906-1.pptx
 
Tables
TablesTables
Tables
 
Html tables
Html tablesHtml tables
Html tables
 
v4-html-table-210321161424.pptx
v4-html-table-210321161424.pptxv4-html-table-210321161424.pptx
v4-html-table-210321161424.pptx
 
R Datatypes
R DatatypesR Datatypes
R Datatypes
 
R Datatypes
R DatatypesR Datatypes
R Datatypes
 
Table and Form HTML&CSS
Table and Form HTML&CSSTable and Form HTML&CSS
Table and Form HTML&CSS
 
Computer language - Html tables
Computer language - Html tablesComputer language - Html tables
Computer language - Html tables
 
Response Tables.ppt
Response Tables.pptResponse Tables.ppt
Response Tables.ppt
 
Lecture 2.ppt
Lecture 2.pptLecture 2.ppt
Lecture 2.ppt
 
html-table
html-tablehtml-table
html-table
 
4.3 table styling
4.3 table styling4.3 table styling
4.3 table styling
 

More from Nuzhat Memon

More from Nuzhat Memon (20)

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

Recently uploaded

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 

Recently uploaded (20)

Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesEnergy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptx
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 

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>