SlideShare una empresa de Scribd logo
1 de 41
BUILDING TABLES
  by Ray Villalobos
WHAT ARE HTML TABLES?
WHAT ARE HTML TABLES?



• Organize   information in rows and columns
WHAT ARE HTML TABLES?



• Organize   information in rows and columns

• Useful   for certain type of information
WHAT DO THEY LOOK LIKE




http://jsfiddle.net/planetoftheweb/CfCgX/
WHAT DO THEY LOOK LIKE
• Compound         tags




  http://jsfiddle.net/planetoftheweb/CfCgX/
WHAT DO THEY LOOK LIKE
• Compound         tags

• Divided    into ROWS <TR> tag




  http://jsfiddle.net/planetoftheweb/CfCgX/
WHAT DO THEY LOOK LIKE
• Compound         tags

• Divided    into ROWS <TR> tag

• Each   row divided into data cells <TD> or Table Data




  http://jsfiddle.net/planetoftheweb/CfCgX/
SPANNING ROWS




http://jsfiddle.net/planetoftheweb/CfCgX/1/2/
SPANNING ROWS
 • Let   a cell take up several td’s




http://jsfiddle.net/planetoftheweb/CfCgX/1/2/
SPANNING ROWS
 • Let   a cell take up several td’s

 • Colspan    & Rowspan




http://jsfiddle.net/planetoftheweb/CfCgX/1/2/
SPANNING ROWS
 • Let   a cell take up several td’s

 • Colspan    & Rowspan

 • Inside TD   tags




http://jsfiddle.net/planetoftheweb/CfCgX/1/2/
PROBLEMS WITH TABLES




             http://jsfiddle.net/planetoftheweb/CfCgX/3/
PROBLEMS WITH TABLES
•   Tough for search engines to understand




                                      http://jsfiddle.net/planetoftheweb/CfCgX/3/
PROBLEMS WITH TABLES
•   Tough for search engines to understand

•   Lack of semantic info




                                      http://jsfiddle.net/planetoftheweb/CfCgX/3/
PROBLEMS WITH TABLES
•   Tough for search engines to understand

•   Lack of semantic info

•   Hard to visualize code




                                      http://jsfiddle.net/planetoftheweb/CfCgX/3/
ADDING A CAPTION

           http://jsfiddle.net/planetoftheweb/CfCgX/4/
ADDING A CAPTION
• Explains   content for SEO & Accessibility

                                         http://jsfiddle.net/planetoftheweb/CfCgX/4/
ADDING A CAPTION
• Explains   content for SEO & Accessibility

• Works   as the title
                                         http://jsfiddle.net/planetoftheweb/CfCgX/4/
DEFINING HEADERS
      http://jsfiddle.net/planetoftheweb/CfCgX/6/
DEFINING HEADERS
                http://jsfiddle.net/planetoftheweb/CfCgX/6/

• THEAD
DEFINING HEADERS
                http://jsfiddle.net/planetoftheweb/CfCgX/6/

• THEAD

• Identifies
 header
DEFINING HEADERS
                http://jsfiddle.net/planetoftheweb/CfCgX/6/

• THEAD

• Identifies
 header

• Can help to
 style forms
IDENTIFYING BODY

         http://jsfiddle.net/planetoftheweb/CfCgX/7/
IDENTIFYING BODY
• TBODY

              http://jsfiddle.net/planetoftheweb/CfCgX/7/
IDENTIFYING BODY
• TBODY

                             http://jsfiddle.net/planetoftheweb/CfCgX/7/
• Creates   a body section
CREATING A FOOTER
      http://jsfiddle.net/planetoftheweb/CfCgX/8/
CREATING A FOOTER
            http://jsfiddle.net/planetoftheweb/CfCgX/8/


• TFOOT
CREATING A FOOTER
                http://jsfiddle.net/planetoftheweb/CfCgX/8/


• TFOOT

• Code after
 THEAD and
 before TBODY
CREATING A FOOTER
                http://jsfiddle.net/planetoftheweb/CfCgX/8/


• TFOOT

• Code after
 THEAD and
 before TBODY

• Shows up
 under TBODY
DEFINING HEADINGS
            http://jsfiddle.net/planetoftheweb/CfCgX/9/
DEFINING HEADINGS
                     http://jsfiddle.net/planetoftheweb/CfCgX/9/




• TH are like H
 tags for forms
DEFINING HEADINGS
                         http://jsfiddle.net/planetoftheweb/CfCgX/9/




• TH are like H
 tags for forms

• Identify
 headings for
 tables
DEFINING HEADINGS
                         http://jsfiddle.net/planetoftheweb/CfCgX/9/




• TH are like H
 tags for forms

• Identify
 headings for
 tables

• Show as
 centered bold
 in browsers
SCOPING HEADINGS
         http://jsfiddle.net/planetoftheweb/CfCgX/10/
SCOPING HEADINGS
                  http://jsfiddle.net/planetoftheweb/CfCgX/10/



• Identifies
          the
 type of TH
SCOPING HEADINGS
                  http://jsfiddle.net/planetoftheweb/CfCgX/10/



• Identifies
          the
 type of TH

• More semantic
 for SEO
SCOPING HEADINGS
                    http://jsfiddle.net/planetoftheweb/CfCgX/10/



• Identifies
          the
 type of TH

• More semantic
 for SEO

• Can target with
 the css type
 selectors
FINISHING UP
       http://jsfiddle.net/planetoftheweb/CfCgX/11/
FINISHING UP
                         http://jsfiddle.net/planetoftheweb/CfCgX/11/




• Adding  a
 border to the
 TDs finishes up
 the style
THE END

Más contenido relacionado

Similar a Building Semantic HTML tables

JavaScript For People Who Don't Code
JavaScript For People Who Don't CodeJavaScript For People Who Don't Code
JavaScript For People Who Don't Code
Christopher Schmitt
 
Coldfusion
ColdfusionColdfusion
Coldfusion
Ram
 
WordPress Coding Standards
WordPress Coding StandardsWordPress Coding Standards
WordPress Coding Standards
Curtiss Grymala
 

Similar a Building Semantic HTML tables (20)

JavaScript For People Who Don't Code
JavaScript For People Who Don't CodeJavaScript For People Who Don't Code
JavaScript For People Who Don't Code
 
2. Content Registration
2. Content Registration2. Content Registration
2. Content Registration
 
How to Build a Bespoke Page Builder in WordPress
How to Build a Bespoke Page Builder in WordPressHow to Build a Bespoke Page Builder in WordPress
How to Build a Bespoke Page Builder in WordPress
 
[In Control 2010] HTML5
[In Control 2010] HTML5[In Control 2010] HTML5
[In Control 2010] HTML5
 
Artdm171 Week4 Tags
Artdm171 Week4 TagsArtdm171 Week4 Tags
Artdm171 Week4 Tags
 
Put a little Backbone in your WordPress vs. 3
Put a little Backbone in your WordPress vs. 3Put a little Backbone in your WordPress vs. 3
Put a little Backbone in your WordPress vs. 3
 
How to Use Selenium, Successfully
How to Use Selenium, SuccessfullyHow to Use Selenium, Successfully
How to Use Selenium, Successfully
 
Coldfusion
ColdfusionColdfusion
Coldfusion
 
WordPress Coding Standards
WordPress Coding StandardsWordPress Coding Standards
WordPress Coding Standards
 
Untangling the web - fall2017 - class 4
Untangling the web - fall2017 - class 4Untangling the web - fall2017 - class 4
Untangling the web - fall2017 - class 4
 
Untangling spring week5
Untangling spring week5Untangling spring week5
Untangling spring week5
 
Famo.us - New generation of HTML5 Web Application Framework
Famo.us - New generation of HTML5 Web Application FrameworkFamo.us - New generation of HTML5 Web Application Framework
Famo.us - New generation of HTML5 Web Application Framework
 
Battle of the Front-End Frameworks: Bootstrap vs. Foundation
Battle of the Front-End Frameworks: Bootstrap vs. FoundationBattle of the Front-End Frameworks: Bootstrap vs. Foundation
Battle of the Front-End Frameworks: Bootstrap vs. Foundation
 
Html5 public
Html5 publicHtml5 public
Html5 public
 
Site Manager rocks!
Site Manager rocks!Site Manager rocks!
Site Manager rocks!
 
How To Use Selenium Successfully
How To Use Selenium SuccessfullyHow To Use Selenium Successfully
How To Use Selenium Successfully
 
Designing for WordPress
Designing for WordPressDesigning for WordPress
Designing for WordPress
 
How the Web Works Using HTML
How the Web Works Using HTMLHow the Web Works Using HTML
How the Web Works Using HTML
 
Html 5 boot camp
Html 5 boot campHtml 5 boot camp
Html 5 boot camp
 
Hacking IIS - NahamCon.pdf
Hacking IIS - NahamCon.pdfHacking IIS - NahamCon.pdf
Hacking IIS - NahamCon.pdf
 

Más de Ray Villalobos (9)

Making money with Google's Adsense
Making money with Google's AdsenseMaking money with Google's Adsense
Making money with Google's Adsense
 
Creating forms
Creating formsCreating forms
Creating forms
 
Doing business
Doing businessDoing business
Doing business
 
Analytics essentials
Analytics essentialsAnalytics essentials
Analytics essentials
 
Online Advertising
Online AdvertisingOnline Advertising
Online Advertising
 
Social media fundamentals
Social media fundamentalsSocial media fundamentals
Social media fundamentals
 
Working with HTML Lists
Working with HTML ListsWorking with HTML Lists
Working with HTML Lists
 
Understanding html
Understanding htmlUnderstanding html
Understanding html
 
CSS Fundamentals
CSS FundamentalsCSS Fundamentals
CSS Fundamentals
 

Último

Girls in Mahipalpur (delhi) call me [🔝9953056974🔝] escort service 24X7
Girls in Mahipalpur  (delhi) call me [🔝9953056974🔝] escort service 24X7Girls in Mahipalpur  (delhi) call me [🔝9953056974🔝] escort service 24X7
Girls in Mahipalpur (delhi) call me [🔝9953056974🔝] escort service 24X7
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
the Husband rolesBrown Aesthetic Cute Group Project Presentation
the Husband rolesBrown Aesthetic Cute Group Project Presentationthe Husband rolesBrown Aesthetic Cute Group Project Presentation
the Husband rolesBrown Aesthetic Cute Group Project Presentation
brynpueblos04
 
KLINIK BATA Jual obat penggugur kandungan 087776558899 ABORSI JANIN KEHAMILAN...
KLINIK BATA Jual obat penggugur kandungan 087776558899 ABORSI JANIN KEHAMILAN...KLINIK BATA Jual obat penggugur kandungan 087776558899 ABORSI JANIN KEHAMILAN...
KLINIK BATA Jual obat penggugur kandungan 087776558899 ABORSI JANIN KEHAMILAN...
Cara Menggugurkan Kandungan 087776558899
 
February 2024 Recommendations for newsletter
February 2024 Recommendations for newsletterFebruary 2024 Recommendations for newsletter
February 2024 Recommendations for newsletter
ssuserdfec6a
 

Último (15)

Social Learning Theory presentation.pptx
Social Learning Theory presentation.pptxSocial Learning Theory presentation.pptx
Social Learning Theory presentation.pptx
 
Emotional Freedom Technique Tapping Points Diagram.pdf
Emotional Freedom Technique Tapping Points Diagram.pdfEmotional Freedom Technique Tapping Points Diagram.pdf
Emotional Freedom Technique Tapping Points Diagram.pdf
 
SIKP311 Sikolohiyang Pilipino - Ginhawa.pptx
SIKP311 Sikolohiyang Pilipino - Ginhawa.pptxSIKP311 Sikolohiyang Pilipino - Ginhawa.pptx
SIKP311 Sikolohiyang Pilipino - Ginhawa.pptx
 
March 2023 Recommendations for newsletter
March 2023 Recommendations for newsletterMarch 2023 Recommendations for newsletter
March 2023 Recommendations for newsletter
 
Call Girls In Mumbai Just Genuine Call ☎ 7738596112✅ Call Girl Andheri East G...
Call Girls In Mumbai Just Genuine Call ☎ 7738596112✅ Call Girl Andheri East G...Call Girls In Mumbai Just Genuine Call ☎ 7738596112✅ Call Girl Andheri East G...
Call Girls In Mumbai Just Genuine Call ☎ 7738596112✅ Call Girl Andheri East G...
 
Girls in Mahipalpur (delhi) call me [🔝9953056974🔝] escort service 24X7
Girls in Mahipalpur  (delhi) call me [🔝9953056974🔝] escort service 24X7Girls in Mahipalpur  (delhi) call me [🔝9953056974🔝] escort service 24X7
Girls in Mahipalpur (delhi) call me [🔝9953056974🔝] escort service 24X7
 
Pokemon Go... Unraveling the Conspiracy Theory
Pokemon Go... Unraveling the Conspiracy TheoryPokemon Go... Unraveling the Conspiracy Theory
Pokemon Go... Unraveling the Conspiracy Theory
 
2023 - Between Philosophy and Practice: Introducing Yoga
2023 - Between Philosophy and Practice: Introducing Yoga2023 - Between Philosophy and Practice: Introducing Yoga
2023 - Between Philosophy and Practice: Introducing Yoga
 
Goregaon West Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
Goregaon West Escorts 🥰 8617370543 Call Girls Offer VIP Hot GirlsGoregaon West Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
Goregaon West Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
 
Exploring Stoic Philosophy From Ancient Wisdom to Modern Relevance.pdf
Exploring Stoic Philosophy From Ancient Wisdom to Modern Relevance.pdfExploring Stoic Philosophy From Ancient Wisdom to Modern Relevance.pdf
Exploring Stoic Philosophy From Ancient Wisdom to Modern Relevance.pdf
 
the Husband rolesBrown Aesthetic Cute Group Project Presentation
the Husband rolesBrown Aesthetic Cute Group Project Presentationthe Husband rolesBrown Aesthetic Cute Group Project Presentation
the Husband rolesBrown Aesthetic Cute Group Project Presentation
 
KLINIK BATA Jual obat penggugur kandungan 087776558899 ABORSI JANIN KEHAMILAN...
KLINIK BATA Jual obat penggugur kandungan 087776558899 ABORSI JANIN KEHAMILAN...KLINIK BATA Jual obat penggugur kandungan 087776558899 ABORSI JANIN KEHAMILAN...
KLINIK BATA Jual obat penggugur kandungan 087776558899 ABORSI JANIN KEHAMILAN...
 
February 2024 Recommendations for newsletter
February 2024 Recommendations for newsletterFebruary 2024 Recommendations for newsletter
February 2024 Recommendations for newsletter
 
Dadar West Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
Dadar West Escorts 🥰 8617370543 Call Girls Offer VIP Hot GirlsDadar West Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
Dadar West Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
 
Colaba Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
Colaba Escorts 🥰 8617370543 Call Girls Offer VIP Hot GirlsColaba Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
Colaba Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
 

Building Semantic HTML tables

  • 1. BUILDING TABLES by Ray Villalobos
  • 2. WHAT ARE HTML TABLES?
  • 3. WHAT ARE HTML TABLES? • Organize information in rows and columns
  • 4. WHAT ARE HTML TABLES? • Organize information in rows and columns • Useful for certain type of information
  • 5. WHAT DO THEY LOOK LIKE http://jsfiddle.net/planetoftheweb/CfCgX/
  • 6. WHAT DO THEY LOOK LIKE • Compound tags http://jsfiddle.net/planetoftheweb/CfCgX/
  • 7. WHAT DO THEY LOOK LIKE • Compound tags • Divided into ROWS <TR> tag http://jsfiddle.net/planetoftheweb/CfCgX/
  • 8. WHAT DO THEY LOOK LIKE • Compound tags • Divided into ROWS <TR> tag • Each row divided into data cells <TD> or Table Data http://jsfiddle.net/planetoftheweb/CfCgX/
  • 10. SPANNING ROWS • Let a cell take up several td’s http://jsfiddle.net/planetoftheweb/CfCgX/1/2/
  • 11. SPANNING ROWS • Let a cell take up several td’s • Colspan & Rowspan http://jsfiddle.net/planetoftheweb/CfCgX/1/2/
  • 12. SPANNING ROWS • Let a cell take up several td’s • Colspan & Rowspan • Inside TD tags http://jsfiddle.net/planetoftheweb/CfCgX/1/2/
  • 13. PROBLEMS WITH TABLES http://jsfiddle.net/planetoftheweb/CfCgX/3/
  • 14. PROBLEMS WITH TABLES • Tough for search engines to understand http://jsfiddle.net/planetoftheweb/CfCgX/3/
  • 15. PROBLEMS WITH TABLES • Tough for search engines to understand • Lack of semantic info http://jsfiddle.net/planetoftheweb/CfCgX/3/
  • 16. PROBLEMS WITH TABLES • Tough for search engines to understand • Lack of semantic info • Hard to visualize code http://jsfiddle.net/planetoftheweb/CfCgX/3/
  • 17. ADDING A CAPTION http://jsfiddle.net/planetoftheweb/CfCgX/4/
  • 18. ADDING A CAPTION • Explains content for SEO & Accessibility http://jsfiddle.net/planetoftheweb/CfCgX/4/
  • 19. ADDING A CAPTION • Explains content for SEO & Accessibility • Works as the title http://jsfiddle.net/planetoftheweb/CfCgX/4/
  • 20. DEFINING HEADERS http://jsfiddle.net/planetoftheweb/CfCgX/6/
  • 21. DEFINING HEADERS http://jsfiddle.net/planetoftheweb/CfCgX/6/ • THEAD
  • 22. DEFINING HEADERS http://jsfiddle.net/planetoftheweb/CfCgX/6/ • THEAD • Identifies header
  • 23. DEFINING HEADERS http://jsfiddle.net/planetoftheweb/CfCgX/6/ • THEAD • Identifies header • Can help to style forms
  • 24. IDENTIFYING BODY http://jsfiddle.net/planetoftheweb/CfCgX/7/
  • 25. IDENTIFYING BODY • TBODY http://jsfiddle.net/planetoftheweb/CfCgX/7/
  • 26. IDENTIFYING BODY • TBODY http://jsfiddle.net/planetoftheweb/CfCgX/7/ • Creates a body section
  • 27. CREATING A FOOTER http://jsfiddle.net/planetoftheweb/CfCgX/8/
  • 28. CREATING A FOOTER http://jsfiddle.net/planetoftheweb/CfCgX/8/ • TFOOT
  • 29. CREATING A FOOTER http://jsfiddle.net/planetoftheweb/CfCgX/8/ • TFOOT • Code after THEAD and before TBODY
  • 30. CREATING A FOOTER http://jsfiddle.net/planetoftheweb/CfCgX/8/ • TFOOT • Code after THEAD and before TBODY • Shows up under TBODY
  • 31. DEFINING HEADINGS http://jsfiddle.net/planetoftheweb/CfCgX/9/
  • 32. DEFINING HEADINGS http://jsfiddle.net/planetoftheweb/CfCgX/9/ • TH are like H tags for forms
  • 33. DEFINING HEADINGS http://jsfiddle.net/planetoftheweb/CfCgX/9/ • TH are like H tags for forms • Identify headings for tables
  • 34. DEFINING HEADINGS http://jsfiddle.net/planetoftheweb/CfCgX/9/ • TH are like H tags for forms • Identify headings for tables • Show as centered bold in browsers
  • 35. SCOPING HEADINGS http://jsfiddle.net/planetoftheweb/CfCgX/10/
  • 36. SCOPING HEADINGS http://jsfiddle.net/planetoftheweb/CfCgX/10/ • Identifies the type of TH
  • 37. SCOPING HEADINGS http://jsfiddle.net/planetoftheweb/CfCgX/10/ • Identifies the type of TH • More semantic for SEO
  • 38. SCOPING HEADINGS http://jsfiddle.net/planetoftheweb/CfCgX/10/ • Identifies the type of TH • More semantic for SEO • Can target with the css type selectors
  • 39. FINISHING UP http://jsfiddle.net/planetoftheweb/CfCgX/11/
  • 40. FINISHING UP http://jsfiddle.net/planetoftheweb/CfCgX/11/ • Adding a border to the TDs finishes up the style

Notas del editor

  1. \n
  2. \n
  3. \n
  4. \n
  5. \n
  6. \n
  7. \n
  8. \n
  9. \n
  10. \n
  11. \n
  12. \n
  13. \n
  14. \n
  15. \n
  16. \n
  17. \n
  18. \n
  19. \n
  20. \n
  21. \n
  22. \n
  23. \n
  24. \n
  25. \n
  26. \n
  27. \n
  28. \n
  29. \n
  30. \n