SlideShare a Scribd company logo
2.1 (Responsive) Tables
HTML module 22.1 Tables
Lesdoel!
Alles wat je nodig hebt
om tables te creëren.
HTML module 22.1 Tables
Meerdere soorten informatie kunnen vorm
gegeven worden d.m.v. tables:
• Sportresultaten
• Cijfers en resultaten
• Prijzenoverzichten
• Treintijden
• Omwisselkoersen
• Beurskoersen
• Analyses
Table
HTML module 22.1 Tables
HTML module 22.1 Tables
Eenvoudige table met resultaten
Ingrediënten
• <caption> </caption>
• <tr> </tr>
• <th> </th>
• <td> </td>
• gegevens
HTML module 22.1 Tables
<table>
Het <table> element wordt
gebruikt voor het aanmaken van
een tabel.
<caption>
Het <caption> element wordt
gebruikt voor het plaatsen
van een legenda boven de tabel.
HTML module 22.1 Tables
<tr>
De start van iedere rij in tabel
gebeurt met de <tr> tag
tr staat voor table row.
HTML module 22.1 Tables
<th>
Het <th> element gebruik je voor
het maken van de heading van
iedere kolom in de tabel
HTML module 22.1 Tables
<td>
Iedere cel van de tabel wordt
gemaakt met de <td> tag.
HTML module 22.1 Tables
rowspan
Soms is het nodig dat cellen van een
tabel uit meerdere rijen kan bestaan.
Dit kan met de rowspan attribuut.
De rowspan attribuut wordt gebruikt met
het <td> en <th> element.
HTML module 22.1 Tables
rowspan
Beetje style toegevoegd.
Lesopdracht
HTML module 22.1 Tables
Codeer onderstaande tabel na met dezelfde gegevens en
indeling. Deze hebben we nodig in het vervolg van de les.
CSS :nth-child() Selector
HTML module 22.1 Tables
Hiermee kan je de style bepalen vanaf de parent
CSS :nth-child() Selector
HTML module 22.1 Tables
Je kan ook even en oneven child’s selecteren
CSS :nth-child() Selector
HTML module 22.1 Tables
Je kan ook met een formule child’s selecteren
Style iedere 3e child vanaf 0.
Tabel stijlen
HTML module 22.1 Tables
Tabel stijlen
HTML module 22.1 Tables
Style iedere
3e td cel van een rij
Style iedere
5e td cel van een rij
vanaf begin (0).
Lesopdracht
HTML module 22.1 Tables
Style de tabel zoals hieronder afgebeeld.
Deze hebben we nodig in het vervolg van de les.
HTML module 22.1 Tables
Tabel Responsive
Tabellen maak je responsive door aanpassen style
1e stap
Plaats huidige css code in de @media voor overige
devices.
HTML module 22.1 Tables Tabel Responsive
2e stap
Plaats onderstaande code in de @media voor mobile devices
HTML module 22.1 Tables Tabel Responsive
3e stap
Plaats onderstaande code in de @media voor mobile devices
HTML module 22.1 Tables Tabel Responsive
4e stap
Plaats onderstaande code in de @media voor mobile devices
HTML module 22.1 Tables Tabel Responsive
Resultaat
bigscreen
Mobile
Opdracht !
Codeer onderstaande responsive webapplicatie.
Upload het geheel als zip file in opdracht in teams
voor het begin van de volgende html les.
HTML module 22.1 Tables
Mobile devices !
HTML module 22.1 Tables
Devices groter dan Mobile !
HTML module 22.1 Tables

More Related Content

Featured

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
Christy Abraham Joy
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
Vit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
MindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

2.1 tables and more

  • 1. 2.1 (Responsive) Tables HTML module 22.1 Tables
  • 2. Lesdoel! Alles wat je nodig hebt om tables te creëren. HTML module 22.1 Tables
  • 3. Meerdere soorten informatie kunnen vorm gegeven worden d.m.v. tables: • Sportresultaten • Cijfers en resultaten • Prijzenoverzichten • Treintijden • Omwisselkoersen • Beurskoersen • Analyses Table HTML module 22.1 Tables
  • 4. HTML module 22.1 Tables Eenvoudige table met resultaten Ingrediënten • <caption> </caption> • <tr> </tr> • <th> </th> • <td> </td> • gegevens
  • 5. HTML module 22.1 Tables <table> Het <table> element wordt gebruikt voor het aanmaken van een tabel. <caption> Het <caption> element wordt gebruikt voor het plaatsen van een legenda boven de tabel.
  • 6. HTML module 22.1 Tables <tr> De start van iedere rij in tabel gebeurt met de <tr> tag tr staat voor table row.
  • 7. HTML module 22.1 Tables <th> Het <th> element gebruik je voor het maken van de heading van iedere kolom in de tabel
  • 8. HTML module 22.1 Tables <td> Iedere cel van de tabel wordt gemaakt met de <td> tag.
  • 9. HTML module 22.1 Tables rowspan Soms is het nodig dat cellen van een tabel uit meerdere rijen kan bestaan. Dit kan met de rowspan attribuut. De rowspan attribuut wordt gebruikt met het <td> en <th> element.
  • 10. HTML module 22.1 Tables rowspan Beetje style toegevoegd.
  • 11. Lesopdracht HTML module 22.1 Tables Codeer onderstaande tabel na met dezelfde gegevens en indeling. Deze hebben we nodig in het vervolg van de les.
  • 12. CSS :nth-child() Selector HTML module 22.1 Tables Hiermee kan je de style bepalen vanaf de parent
  • 13. CSS :nth-child() Selector HTML module 22.1 Tables Je kan ook even en oneven child’s selecteren
  • 14. CSS :nth-child() Selector HTML module 22.1 Tables Je kan ook met een formule child’s selecteren Style iedere 3e child vanaf 0.
  • 16. Tabel stijlen HTML module 22.1 Tables Style iedere 3e td cel van een rij Style iedere 5e td cel van een rij vanaf begin (0).
  • 17. Lesopdracht HTML module 22.1 Tables Style de tabel zoals hieronder afgebeeld. Deze hebben we nodig in het vervolg van de les.
  • 18. HTML module 22.1 Tables Tabel Responsive Tabellen maak je responsive door aanpassen style 1e stap Plaats huidige css code in de @media voor overige devices.
  • 19. HTML module 22.1 Tables Tabel Responsive 2e stap Plaats onderstaande code in de @media voor mobile devices
  • 20. HTML module 22.1 Tables Tabel Responsive 3e stap Plaats onderstaande code in de @media voor mobile devices
  • 21. HTML module 22.1 Tables Tabel Responsive 4e stap Plaats onderstaande code in de @media voor mobile devices
  • 22. HTML module 22.1 Tables Tabel Responsive Resultaat bigscreen Mobile
  • 23. Opdracht ! Codeer onderstaande responsive webapplicatie. Upload het geheel als zip file in opdracht in teams voor het begin van de volgende html les. HTML module 22.1 Tables
  • 24. Mobile devices ! HTML module 22.1 Tables
  • 25. Devices groter dan Mobile ! HTML module 22.1 Tables