SlideShare uma empresa 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

Mais conteúdo relacionado

Semelhante 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 CodeChristopher Schmitt
 
2. Content Registration
2. Content Registration2. Content Registration
2. Content RegistrationCrossref
 
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 WordPressGerald Glynn
 
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. 3adamsilverstein
 
How to Use Selenium, Successfully
How to Use Selenium, SuccessfullyHow to Use Selenium, Successfully
How to Use Selenium, SuccessfullySauce Labs
 
Coldfusion
ColdfusionColdfusion
ColdfusionRam
 
WordPress Coding Standards
WordPress Coding StandardsWordPress Coding Standards
WordPress Coding StandardsCurtiss Grymala
 
Untangling the web - fall2017 - class 4
Untangling the web - fall2017 - class 4Untangling the web - fall2017 - class 4
Untangling the web - fall2017 - class 4Derek Jacoby
 
Untangling spring week5
Untangling spring week5Untangling spring week5
Untangling spring week5Derek Jacoby
 
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 FrameworkHina Chen
 
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. FoundationRachel Cherry
 
How To Use Selenium Successfully
How To Use Selenium SuccessfullyHow To Use Selenium Successfully
How To Use Selenium SuccessfullyDave Haeffner
 
How the Web Works Using HTML
How the Web Works Using HTMLHow the Web Works Using HTML
How the Web Works Using HTMLMarlon Jamera
 
Hacking IIS - NahamCon.pdf
Hacking IIS - NahamCon.pdfHacking IIS - NahamCon.pdf
Hacking IIS - NahamCon.pdfdistortdistort
 

Semelhante 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
 

Mais de Ray Villalobos

Mais 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

Module-2-Lesson-2-COMMUNICATION-AIDS-AND-STRATEGIES-USING-TOOLS-OF-TECHNOLOGY...
Module-2-Lesson-2-COMMUNICATION-AIDS-AND-STRATEGIES-USING-TOOLS-OF-TECHNOLOGY...Module-2-Lesson-2-COMMUNICATION-AIDS-AND-STRATEGIES-USING-TOOLS-OF-TECHNOLOGY...
Module-2-Lesson-2-COMMUNICATION-AIDS-AND-STRATEGIES-USING-TOOLS-OF-TECHNOLOGY...JeylaisaManabat1
 
ingrediendts needed in preparing dessert and sweet sauces
ingrediendts needed in preparing dessert and sweet saucesingrediendts needed in preparing dessert and sweet sauces
ingrediendts needed in preparing dessert and sweet saucesJessicaEscao
 
Virtue ethics & Effective Altruism: What can EA learn from virtue ethics?
Virtue ethics & Effective Altruism: What can EA learn from virtue ethics?Virtue ethics & Effective Altruism: What can EA learn from virtue ethics?
Virtue ethics & Effective Altruism: What can EA learn from virtue ethics?Mikko Kangassalo
 
Call Girls Dubai O525547819 Favor Dubai Call Girls Agency
Call Girls Dubai O525547819 Favor Dubai Call Girls AgencyCall Girls Dubai O525547819 Favor Dubai Call Girls Agency
Call Girls Dubai O525547819 Favor Dubai Call Girls Agencykojalkojal131
 
integrity in personal relationship (1).pdf
integrity in personal relationship (1).pdfintegrity in personal relationship (1).pdf
integrity in personal relationship (1).pdfAmitRout25
 
Benefits of Co working & Shared office space in India
Benefits of Co working & Shared office space in IndiaBenefits of Co working & Shared office space in India
Benefits of Co working & Shared office space in IndiaBrantfordIndia
 
The 5 sec rule - Mel Robins (Hindi Summary)
The 5 sec rule - Mel Robins (Hindi Summary)The 5 sec rule - Mel Robins (Hindi Summary)
The 5 sec rule - Mel Robins (Hindi Summary)Shakti Savarn
 
Spiritual Life Quote from Shiva Negi
Spiritual Life Quote from Shiva Negi Spiritual Life Quote from Shiva Negi
Spiritual Life Quote from Shiva Negi OneDay18
 
English basic for beginners Future tenses .pdf
English basic for beginners Future tenses .pdfEnglish basic for beginners Future tenses .pdf
English basic for beginners Future tenses .pdfbromerom1
 

Último (9)

Module-2-Lesson-2-COMMUNICATION-AIDS-AND-STRATEGIES-USING-TOOLS-OF-TECHNOLOGY...
Module-2-Lesson-2-COMMUNICATION-AIDS-AND-STRATEGIES-USING-TOOLS-OF-TECHNOLOGY...Module-2-Lesson-2-COMMUNICATION-AIDS-AND-STRATEGIES-USING-TOOLS-OF-TECHNOLOGY...
Module-2-Lesson-2-COMMUNICATION-AIDS-AND-STRATEGIES-USING-TOOLS-OF-TECHNOLOGY...
 
ingrediendts needed in preparing dessert and sweet sauces
ingrediendts needed in preparing dessert and sweet saucesingrediendts needed in preparing dessert and sweet sauces
ingrediendts needed in preparing dessert and sweet sauces
 
Virtue ethics & Effective Altruism: What can EA learn from virtue ethics?
Virtue ethics & Effective Altruism: What can EA learn from virtue ethics?Virtue ethics & Effective Altruism: What can EA learn from virtue ethics?
Virtue ethics & Effective Altruism: What can EA learn from virtue ethics?
 
Call Girls Dubai O525547819 Favor Dubai Call Girls Agency
Call Girls Dubai O525547819 Favor Dubai Call Girls AgencyCall Girls Dubai O525547819 Favor Dubai Call Girls Agency
Call Girls Dubai O525547819 Favor Dubai Call Girls Agency
 
integrity in personal relationship (1).pdf
integrity in personal relationship (1).pdfintegrity in personal relationship (1).pdf
integrity in personal relationship (1).pdf
 
Benefits of Co working & Shared office space in India
Benefits of Co working & Shared office space in IndiaBenefits of Co working & Shared office space in India
Benefits of Co working & Shared office space in India
 
The 5 sec rule - Mel Robins (Hindi Summary)
The 5 sec rule - Mel Robins (Hindi Summary)The 5 sec rule - Mel Robins (Hindi Summary)
The 5 sec rule - Mel Robins (Hindi Summary)
 
Spiritual Life Quote from Shiva Negi
Spiritual Life Quote from Shiva Negi Spiritual Life Quote from Shiva Negi
Spiritual Life Quote from Shiva Negi
 
English basic for beginners Future tenses .pdf
English basic for beginners Future tenses .pdfEnglish basic for beginners Future tenses .pdf
English basic for beginners Future tenses .pdf
 

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 do 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