SlideShare a Scribd company logo
HTML TABLES
By Tr. MJ Fernandez
Joy in Learning School Inc.
Defining an HTML Table
◦An HTML table is defined with the <table> tag.
◦Each table row is defined with the <tr> tag. A table
header is defined with the <th> tag. By default, table
headings are bold and centered. A table data/cell is
defined with the <td> tag.
HTML Table - Adding a Border
◦If you do not specify a border for the table, it will be
displayed without borders.
◦A border is set using the CSS border property:
HTML Table - Adding a Border
◦If you do not specify a border for the table, it will be
displayed without borders.
◦A border is set using the CSS border property:
HTML Table - Adding Cell Padding
◦Cell padding specifies the space between the cell
content and its borders.
◦If you do not specify a padding, the table cells will be
displayed without padding.
◦To set the padding, use the CSS padding property:
HTML Table - Left-align Headings
◦By default, table headings are bold and centered.
◦To left-align the table headings, use the CSS text-align
property:
HTML Table - Adding Border Spacing
◦Border spacing specifies the space between the cells.
◦To set the border spacing for a table, use the CSS
border-spacing property:
HTML Table - Cells that Span Many
Columns
◦To make a cell span more than one column, use the
colspan attribute:
HTML Table - Cells that Span Many
Rows
◦To make a cell span more than one row, use the rowspan
attribute:
HTML Table - Adding a Caption
◦To add a caption to a table, use the <caption> tag:
A Special Style for One Table
◦To define a special style for a special table, add an id
attribute to the table:
Now you can define a special style for this
table:
Now you can define a special style for this
table:
Chapter Summary
◦ Use the HTML <table> element to define a table
◦ Use the HTML <tr> element to define a table row
◦ Use the HTML <td> element to define a table data
◦ Use the HTML <th> element to define a table heading
◦ Use the HTML <caption> element to define a table caption
◦ Use the CSS border property to define a border
◦ Use the CSS border-collapse property to collapse cell borders
◦ Use the CSS padding property to add padding to cells
◦ Use the CSS text-align property to align cell text
◦ Use the CSS border-spacing property to set the spacing between cells
◦ Use the colspan attribute to make a cell span many columns
◦ Use the rowspan attribute to make a cell span many rows
◦ Use the id attribute to uniquely define one table
REFERENCE:
HTML TABLE
https://www.w3schools.com/html/html_tables.asp

More Related Content

What's hot

Html text and formatting
Html text and formattingHtml text and formatting
Html text and formattingeShikshak
 
Introduction to Cascading Style Sheets (CSS)
Introduction to Cascading Style Sheets (CSS)Introduction to Cascading Style Sheets (CSS)
Introduction to Cascading Style Sheets (CSS)
Chris Poteet
 
Lesson 1: Introduction to HTML
Lesson 1: Introduction to HTMLLesson 1: Introduction to HTML
Lesson 1: Introduction to HTML
Olivia Moran
 
Presentation on HTML
Presentation on HTMLPresentation on HTML
Presentation on HTML
satvirsandhu9
 
Basic html structure
Basic html structureBasic html structure
Basic html structure
Jhaun Paul Enriquez
 
Css selectors
Css selectorsCss selectors
Css selectors
Parth Trivedi
 
Html table tags
Html table tagsHtml table tags
Html table tags
eShikshak
 
HTML Forms
HTML FormsHTML Forms
HTML Forms
Nisa Soomro
 
HTML Table Tags
HTML Table TagsHTML Table Tags
HTML Table Tags
Kainat Ilyas
 
cascading style sheet ppt
cascading style sheet pptcascading style sheet ppt
cascading style sheet ppt
abhilashagupta
 
Html ppt
Html pptHtml ppt
Html ppt
santosh lamba
 
Html links
Html linksHtml links
Html links
JayjZens
 
Html forms
Html formsHtml forms
Html forms
Himanshu Pathak
 
Cascading Style Sheet (CSS)
Cascading Style Sheet (CSS)Cascading Style Sheet (CSS)
Cascading Style Sheet (CSS)
AakankshaR
 
Html form tag
Html form tagHtml form tag
Html form tag
shreyachougule
 
Html / CSS Presentation
Html / CSS PresentationHtml / CSS Presentation
Html / CSS Presentation
Shawn Calvert
 

What's hot (20)

Html text and formatting
Html text and formattingHtml text and formatting
Html text and formatting
 
Html list
Html listHtml list
Html list
 
Introduction to Cascading Style Sheets (CSS)
Introduction to Cascading Style Sheets (CSS)Introduction to Cascading Style Sheets (CSS)
Introduction to Cascading Style Sheets (CSS)
 
Lesson 1: Introduction to HTML
Lesson 1: Introduction to HTMLLesson 1: Introduction to HTML
Lesson 1: Introduction to HTML
 
Css Ppt
Css PptCss Ppt
Css Ppt
 
Presentation on HTML
Presentation on HTMLPresentation on HTML
Presentation on HTML
 
Basic html structure
Basic html structureBasic html structure
Basic html structure
 
Css selectors
Css selectorsCss selectors
Css selectors
 
Html table tags
Html table tagsHtml table tags
Html table tags
 
HTML Forms
HTML FormsHTML Forms
HTML Forms
 
HTML Table Tags
HTML Table TagsHTML Table Tags
HTML Table Tags
 
cascading style sheet ppt
cascading style sheet pptcascading style sheet ppt
cascading style sheet ppt
 
Html ppt
Html pptHtml ppt
Html ppt
 
Html links
Html linksHtml links
Html links
 
Html forms
Html formsHtml forms
Html forms
 
Cascading Style Sheet (CSS)
Cascading Style Sheet (CSS)Cascading Style Sheet (CSS)
Cascading Style Sheet (CSS)
 
Html-list
Html-listHtml-list
Html-list
 
Html form tag
Html form tagHtml form tag
Html form tag
 
Css tables
Css tablesCss tables
Css tables
 
Html / CSS Presentation
Html / CSS PresentationHtml / CSS Presentation
Html / CSS Presentation
 

Similar to Html table

htmltable.pptx
htmltable.pptxhtmltable.pptx
htmltable.pptx
raman156413
 
Html tables
Html tablesHtml tables
Html tables
Sikandar Pandit
 
Html tables
Html tablesHtml tables
WEP4 and 5.pptx
WEP4 and 5.pptxWEP4 and 5.pptx
WEP4 and 5.pptx
MLikithMahendra
 
htmltables-180721142906-1.pptx
htmltables-180721142906-1.pptxhtmltables-180721142906-1.pptx
htmltables-180721142906-1.pptx
HemantBansal35
 
HTML Tables in Omeka
HTML Tables in OmekaHTML Tables in Omeka
HTML Tables in Omeka
American Antiquarian Society
 
Html tables
Html tablesHtml tables
CSS
CSSCSS
Html tables
Html tablesHtml tables
Html tables
Himanshu Pathak
 
Chapter 4 class presentation
Chapter 4 class presentationChapter 4 class presentation
Chapter 4 class presentation
cmurphysvhs
 
Chapter 4 class presentation
Chapter 4 class presentationChapter 4 class presentation
Chapter 4 class presentationcmurphysvhs
 
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
Mustafa Kamel Mohammadi
 
Lecture 2.ppt
Lecture 2.pptLecture 2.ppt
Lecture 2.ppt
MuhammadRehan856177
 
Presentation (2).pptx
Presentation (2).pptxPresentation (2).pptx
Presentation (2).pptx
HardikMugvana
 
Table and Form HTML&CSS
Table and Form HTML&CSSTable and Form HTML&CSS
Table and Form HTML&CSS
Yaowaluck Promdee
 
HTML Tables
HTML TablesHTML Tables
HTML Tables
Nisa Soomro
 
uptu web technology unit 2 html
uptu web technology unit 2 htmluptu web technology unit 2 html
uptu web technology unit 2 html
Abhishek Kesharwani
 

Similar to Html table (20)

htmltable.pptx
htmltable.pptxhtmltable.pptx
htmltable.pptx
 
Html tables
Html tablesHtml tables
Html tables
 
Html tables
Html tablesHtml tables
Html tables
 
WEP4 and 5.pptx
WEP4 and 5.pptxWEP4 and 5.pptx
WEP4 and 5.pptx
 
htmltables-180721142906-1.pptx
htmltables-180721142906-1.pptxhtmltables-180721142906-1.pptx
htmltables-180721142906-1.pptx
 
HTML Tables in Omeka
HTML Tables in OmekaHTML Tables in Omeka
HTML Tables in Omeka
 
Html tables
Html tablesHtml tables
Html tables
 
Html3
Html3Html3
Html3
 
Html3
Html3Html3
Html3
 
CSS
CSSCSS
CSS
 
Html tables
Html tablesHtml tables
Html tables
 
HTML Tables
HTML TablesHTML Tables
HTML Tables
 
Chapter 4 class presentation
Chapter 4 class presentationChapter 4 class presentation
Chapter 4 class presentation
 
Chapter 4 class presentation
Chapter 4 class presentationChapter 4 class presentation
Chapter 4 class presentation
 
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
 
Lecture 2.ppt
Lecture 2.pptLecture 2.ppt
Lecture 2.ppt
 
Presentation (2).pptx
Presentation (2).pptxPresentation (2).pptx
Presentation (2).pptx
 
Table and Form HTML&CSS
Table and Form HTML&CSSTable and Form HTML&CSS
Table and Form HTML&CSS
 
HTML Tables
HTML TablesHTML Tables
HTML Tables
 
uptu web technology unit 2 html
uptu web technology unit 2 htmluptu web technology unit 2 html
uptu web technology unit 2 html
 

More from JayjZens

Science 7 lesson 1.1
Science 7 lesson 1.1Science 7 lesson 1.1
Science 7 lesson 1.1
JayjZens
 
Quilling famtime
Quilling famtimeQuilling famtime
Quilling famtime
JayjZens
 
Rebekah women of the bible
Rebekah women of the bibleRebekah women of the bible
Rebekah women of the bible
JayjZens
 
1. intro ict
1. intro ict1. intro ict
1. intro ict
JayjZens
 
Evaluating internet resources
Evaluating internet resourcesEvaluating internet resources
Evaluating internet resources
JayjZens
 
Web browser &amp; search engine
Web browser &amp; search engineWeb browser &amp; search engine
Web browser &amp; search engine
JayjZens
 
Introbotics
IntroboticsIntrobotics
Introbotics
JayjZens
 
Creating &amp; organizing bookmark for website
Creating &amp; organizing bookmark for websiteCreating &amp; organizing bookmark for website
Creating &amp; organizing bookmark for website
JayjZens
 
Advantages and disadvantages of using online tools
Advantages and disadvantages of using online toolsAdvantages and disadvantages of using online tools
Advantages and disadvantages of using online tools
JayjZens
 
1. introduction to html5
1. introduction to html51. introduction to html5
1. introduction to html5
JayjZens
 
Styling of css
Styling of cssStyling of css
Styling of css
JayjZens
 
Creating you first web page!
Creating you first web page!Creating you first web page!
Creating you first web page!
JayjZens
 
Roborobo 3 parts
Roborobo  3 partsRoborobo  3 parts
Roborobo 3 parts
JayjZens
 
Roborobo 3 p arts definition
Roborobo  3 p arts definitionRoborobo  3 p arts definition
Roborobo 3 p arts definition
JayjZens
 
Liquidity ratio
Liquidity ratioLiquidity ratio
Liquidity ratio
JayjZens
 
Corals and coral reefs
Corals and coral reefsCorals and coral reefs
Corals and coral reefs
JayjZens
 

More from JayjZens (16)

Science 7 lesson 1.1
Science 7 lesson 1.1Science 7 lesson 1.1
Science 7 lesson 1.1
 
Quilling famtime
Quilling famtimeQuilling famtime
Quilling famtime
 
Rebekah women of the bible
Rebekah women of the bibleRebekah women of the bible
Rebekah women of the bible
 
1. intro ict
1. intro ict1. intro ict
1. intro ict
 
Evaluating internet resources
Evaluating internet resourcesEvaluating internet resources
Evaluating internet resources
 
Web browser &amp; search engine
Web browser &amp; search engineWeb browser &amp; search engine
Web browser &amp; search engine
 
Introbotics
IntroboticsIntrobotics
Introbotics
 
Creating &amp; organizing bookmark for website
Creating &amp; organizing bookmark for websiteCreating &amp; organizing bookmark for website
Creating &amp; organizing bookmark for website
 
Advantages and disadvantages of using online tools
Advantages and disadvantages of using online toolsAdvantages and disadvantages of using online tools
Advantages and disadvantages of using online tools
 
1. introduction to html5
1. introduction to html51. introduction to html5
1. introduction to html5
 
Styling of css
Styling of cssStyling of css
Styling of css
 
Creating you first web page!
Creating you first web page!Creating you first web page!
Creating you first web page!
 
Roborobo 3 parts
Roborobo  3 partsRoborobo  3 parts
Roborobo 3 parts
 
Roborobo 3 p arts definition
Roborobo  3 p arts definitionRoborobo  3 p arts definition
Roborobo 3 p arts definition
 
Liquidity ratio
Liquidity ratioLiquidity ratio
Liquidity ratio
 
Corals and coral reefs
Corals and coral reefsCorals and coral reefs
Corals and coral reefs
 

Recently uploaded

Explore Modern SharePoint Templates for 2024
Explore Modern SharePoint Templates for 2024Explore Modern SharePoint Templates for 2024
Explore Modern SharePoint Templates for 2024
Sharepoint Designs
 
Software Testing Exam imp Ques Notes.pdf
Software Testing Exam imp Ques Notes.pdfSoftware Testing Exam imp Ques Notes.pdf
Software Testing Exam imp Ques Notes.pdf
MayankTawar1
 
Vitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume MontevideoVitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume Montevideo
Vitthal Shirke
 
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data AnalysisProviding Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
Globus
 
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology SolutionsProsigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns
 
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2
 
2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx
Georgi Kodinov
 
Lecture 1 Introduction to games development
Lecture 1 Introduction to games developmentLecture 1 Introduction to games development
Lecture 1 Introduction to games development
abdulrafaychaudhry
 
Developing Distributed High-performance Computing Capabilities of an Open Sci...
Developing Distributed High-performance Computing Capabilities of an Open Sci...Developing Distributed High-performance Computing Capabilities of an Open Sci...
Developing Distributed High-performance Computing Capabilities of an Open Sci...
Globus
 
Why React Native as a Strategic Advantage for Startup Innovation.pdf
Why React Native as a Strategic Advantage for Startup Innovation.pdfWhy React Native as a Strategic Advantage for Startup Innovation.pdf
Why React Native as a Strategic Advantage for Startup Innovation.pdf
ayushiqss
 
Strategies for Successful Data Migration Tools.pptx
Strategies for Successful Data Migration Tools.pptxStrategies for Successful Data Migration Tools.pptx
Strategies for Successful Data Migration Tools.pptx
varshanayak241
 
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.ILBeyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Natan Silnitsky
 
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdfDominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
AMB-Review
 
Into the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdfInto the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdf
Ortus Solutions, Corp
 
Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024
Paco van Beckhoven
 
Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024
Globus
 
De mooiste recreatieve routes ontdekken met RouteYou en FME
De mooiste recreatieve routes ontdekken met RouteYou en FMEDe mooiste recreatieve routes ontdekken met RouteYou en FME
De mooiste recreatieve routes ontdekken met RouteYou en FME
Jelle | Nordend
 
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Globus
 
SOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBrokerSOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar
 
Quarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden ExtensionsQuarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden Extensions
Max Andersen
 

Recently uploaded (20)

Explore Modern SharePoint Templates for 2024
Explore Modern SharePoint Templates for 2024Explore Modern SharePoint Templates for 2024
Explore Modern SharePoint Templates for 2024
 
Software Testing Exam imp Ques Notes.pdf
Software Testing Exam imp Ques Notes.pdfSoftware Testing Exam imp Ques Notes.pdf
Software Testing Exam imp Ques Notes.pdf
 
Vitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume MontevideoVitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume Montevideo
 
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data AnalysisProviding Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
 
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology SolutionsProsigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology Solutions
 
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
 
2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx
 
Lecture 1 Introduction to games development
Lecture 1 Introduction to games developmentLecture 1 Introduction to games development
Lecture 1 Introduction to games development
 
Developing Distributed High-performance Computing Capabilities of an Open Sci...
Developing Distributed High-performance Computing Capabilities of an Open Sci...Developing Distributed High-performance Computing Capabilities of an Open Sci...
Developing Distributed High-performance Computing Capabilities of an Open Sci...
 
Why React Native as a Strategic Advantage for Startup Innovation.pdf
Why React Native as a Strategic Advantage for Startup Innovation.pdfWhy React Native as a Strategic Advantage for Startup Innovation.pdf
Why React Native as a Strategic Advantage for Startup Innovation.pdf
 
Strategies for Successful Data Migration Tools.pptx
Strategies for Successful Data Migration Tools.pptxStrategies for Successful Data Migration Tools.pptx
Strategies for Successful Data Migration Tools.pptx
 
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.ILBeyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
 
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdfDominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
 
Into the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdfInto the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdf
 
Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024
 
Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024
 
De mooiste recreatieve routes ontdekken met RouteYou en FME
De mooiste recreatieve routes ontdekken met RouteYou en FMEDe mooiste recreatieve routes ontdekken met RouteYou en FME
De mooiste recreatieve routes ontdekken met RouteYou en FME
 
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
 
SOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBrokerSOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBroker
 
Quarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden ExtensionsQuarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden Extensions
 

Html table

  • 1. HTML TABLES By Tr. MJ Fernandez Joy in Learning School Inc.
  • 2. Defining an HTML Table ◦An HTML table is defined with the <table> tag. ◦Each table row is defined with the <tr> tag. A table header is defined with the <th> tag. By default, table headings are bold and centered. A table data/cell is defined with the <td> tag.
  • 3.
  • 4. HTML Table - Adding a Border ◦If you do not specify a border for the table, it will be displayed without borders. ◦A border is set using the CSS border property:
  • 5.
  • 6. HTML Table - Adding a Border ◦If you do not specify a border for the table, it will be displayed without borders. ◦A border is set using the CSS border property:
  • 7.
  • 8. HTML Table - Adding Cell Padding ◦Cell padding specifies the space between the cell content and its borders. ◦If you do not specify a padding, the table cells will be displayed without padding. ◦To set the padding, use the CSS padding property:
  • 9.
  • 10. HTML Table - Left-align Headings ◦By default, table headings are bold and centered. ◦To left-align the table headings, use the CSS text-align property:
  • 11.
  • 12. HTML Table - Adding Border Spacing ◦Border spacing specifies the space between the cells. ◦To set the border spacing for a table, use the CSS border-spacing property:
  • 13.
  • 14. HTML Table - Cells that Span Many Columns ◦To make a cell span more than one column, use the colspan attribute:
  • 15.
  • 16. HTML Table - Cells that Span Many Rows ◦To make a cell span more than one row, use the rowspan attribute:
  • 17.
  • 18. HTML Table - Adding a Caption ◦To add a caption to a table, use the <caption> tag:
  • 19.
  • 20. A Special Style for One Table ◦To define a special style for a special table, add an id attribute to the table:
  • 21. Now you can define a special style for this table:
  • 22. Now you can define a special style for this table:
  • 23. Chapter Summary ◦ Use the HTML <table> element to define a table ◦ Use the HTML <tr> element to define a table row ◦ Use the HTML <td> element to define a table data ◦ Use the HTML <th> element to define a table heading ◦ Use the HTML <caption> element to define a table caption ◦ Use the CSS border property to define a border ◦ Use the CSS border-collapse property to collapse cell borders ◦ Use the CSS padding property to add padding to cells ◦ Use the CSS text-align property to align cell text ◦ Use the CSS border-spacing property to set the spacing between cells ◦ Use the colspan attribute to make a cell span many columns ◦ Use the rowspan attribute to make a cell span many rows ◦ Use the id attribute to uniquely define one table