SlideShare a Scribd company logo
1 of 13
HTML PROGRAMMING
Lesson 5: Using tables and lists
Lesson Objectives
 By the end of this lesson you will be able to:
 Create tables to display information
 Make effective use of lists to display information
 Change how information is displayed in a table
Starter
 In this lesson you are going to display
information as lists and in tables, can you think
of any software packages that you have used
tables or lists?
 Why do we use tables and lists?
Creating a table...
<html>
<body>
<p>Each table starts with a table tag. Each
table row starts with a tr tag. Each table data
starts with a td tag. </p>
<h4>One column:</h4>
<table border="1">
<tr>
<td>100</td>
</tr>
</table>
<h4>One row and three columns:</h4>
<table border="1">
<tr>
<td>100</td>
<td>200</td>
<td>300</td>
</tr>
</table>
</body>
</html>
100
100 200 300
Create a table
 Using tables can help to display
information in a neat way
 You have used tables before in
other software, but they are
slightly more difficult to create
in HTML
 Using the code provided, create
a new webpage and save it as
table.htm
 Preview the website in Internet
Explorer when finished. You
might also want to try changing
the size of the table border to
see what happens.
<html>
<body>
<p>Each table starts with a table tag. Each
table row starts with a tr tag. Each table data
starts with a td tag. </p>
<h4>One column:</h4>
<table border="1">
<tr>
<td>100</td>
</tr>
</table>
<h4>One row and three columns:</h4>
<table border="1">
<tr>
<td>100</td>
<td>200</td>
<td>300</td>
</tr>
</table>
</body>
</html>
Using lists...
 Sometimes a table is not
always the best option, so we
are also going to try and use
HTML lists
 There are 2 types of list,
ordered and unordered
 Type in the code provided to
create a new webpage and
save it as unorderedlist.htm
 Preview your work in Internet
Explorer to see how it looks.
 Try adding some more items
to your list
<html>
<body>
<h4>An Unordered List:</h4>
<ul>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>
</body>
</html>
More lists...
 We have created an unordered list,
but we also want to find out how to
create an ordered list
 When you type in this code, each of
the list items will automatically be
numbered
 Try typing in the HTML code
provided to create a new webpage
called orderedlist.htm
 Save your work and then preview it
in Internet Explorer
 What is the difference between
ordered and unordered lists?
<html>
<body>
<h4>An Ordered List:</h4>
<ol>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
</body>
</html>
Your task...
 Using your Newcastle.htm file that you have
been working on, you need to:
 Create an unordered list to display the following:
 Top places to visit in Newcastle:
 Hancock Museum
 Centre for Life
 St James’ Park
 Add the following table:
Things to do in Newcastle Where?
Shopping Eldon Square
Ten pin bowling Westgate Road
Cinema The Gate
Remember to
save and
preview your
work!
Extension...
 If you have reached this stage then you are
doing exceptionally well – congratulations!
 Here is a challenge for you:
 Using the Internet, find out how to:
 Change the colour of the cells in the table you have
created
 Change the colour of the text in the table you have
created
 Save your work then preview it in Internet
Adding font colour and background
colour
<td bgcolor="red"><font color="white">100</td>
<td bgcolor="yellow“><font color="blue">200</td>
<td bgcolor="red"><font color="yellow">300</td>
This code
must go
between the
td tags
Add a moving marquee
 <font size="5" face="verdana" color="white">
 <marquee>Newcastle are the
BEST!!</marquee>
Plenary...
 Update your HTML tag table to explain the
following:
 <tr>
 <td>
 <ul>
 <li>
 <ol>
 Remember to include an example from today’s
lesson of where you have used these tags
Summary
 In this lesson you have:
 Created tables to display information
 Made effective use of lists to display information
 Changed how information is displayed in a table

More Related Content

Viewers also liked

Katalog akcesoriów do sesji zdjęciowych i fotobudki
Katalog akcesoriów do sesji zdjęciowych i fotobudkiKatalog akcesoriów do sesji zdjęciowych i fotobudki
Katalog akcesoriów do sesji zdjęciowych i fotobudkiniusdesign
 
Senior Physical Fitness Test
Senior Physical Fitness TestSenior Physical Fitness Test
Senior Physical Fitness TestMarisa Schuller
 
Visual Impairment and Motor Development
Visual Impairment and Motor DevelopmentVisual Impairment and Motor Development
Visual Impairment and Motor DevelopmentMarisa Schuller
 
The history of mobile phones
The history of mobile phonesThe history of mobile phones
The history of mobile phonesSlides4Victor
 

Viewers also liked (7)

Lesson 2
Lesson 2Lesson 2
Lesson 2
 
Lesson 1
Lesson 1Lesson 1
Lesson 1
 
Katalog akcesoriów do sesji zdjęciowych i fotobudki
Katalog akcesoriów do sesji zdjęciowych i fotobudkiKatalog akcesoriów do sesji zdjęciowych i fotobudki
Katalog akcesoriów do sesji zdjęciowych i fotobudki
 
Como hackear un facebook 2015-2016
Como hackear un facebook 2015-2016Como hackear un facebook 2015-2016
Como hackear un facebook 2015-2016
 
Senior Physical Fitness Test
Senior Physical Fitness TestSenior Physical Fitness Test
Senior Physical Fitness Test
 
Visual Impairment and Motor Development
Visual Impairment and Motor DevelopmentVisual Impairment and Motor Development
Visual Impairment and Motor Development
 
The history of mobile phones
The history of mobile phonesThe history of mobile phones
The history of mobile phones
 

Similar to Lesson 5

Similar to Lesson 5 (20)

HTML.pptx
HTML.pptxHTML.pptx
HTML.pptx
 
HTML.pptx
HTML.pptxHTML.pptx
HTML.pptx
 
Web pract
Web practWeb pract
Web pract
 
HTML
HTMLHTML
HTML
 
Html
HtmlHtml
Html
 
HTML Webinar Class
HTML Webinar ClassHTML Webinar Class
HTML Webinar Class
 
Unit 2 (it workshop)
Unit 2 (it workshop)Unit 2 (it workshop)
Unit 2 (it workshop)
 
Introduction to Web Technology and Web Page Development
Introduction to Web Technology and Web Page DevelopmentIntroduction to Web Technology and Web Page Development
Introduction to Web Technology and Web Page Development
 
HTML Overview
HTML OverviewHTML Overview
HTML Overview
 
Html ,css,xml
Html ,css,xmlHtml ,css,xml
Html ,css,xml
 
Html presentation
Html presentationHtml presentation
Html presentation
 
WDD
WDDWDD
WDD
 
Web forms and html lecture Number 3
Web forms and html lecture Number 3Web forms and html lecture Number 3
Web forms and html lecture Number 3
 
BITM3730 9-13.pptx
BITM3730 9-13.pptxBITM3730 9-13.pptx
BITM3730 9-13.pptx
 
How to create Excel dashboards easily
How to create Excel dashboards easilyHow to create Excel dashboards easily
How to create Excel dashboards easily
 
Web Design-III IT.ppt
Web Design-III IT.pptWeb Design-III IT.ppt
Web Design-III IT.ppt
 
2a web technology html basics 1
2a web technology html basics 12a web technology html basics 1
2a web technology html basics 1
 
html1.ppt
html1.ppthtml1.ppt
html1.ppt
 
html5.ppt
html5.ppthtml5.ppt
html5.ppt
 
html1.ppt
html1.ppthtml1.ppt
html1.ppt
 

Recently uploaded

Implementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureImplementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureDinusha Kumarasiri
 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)OPEN KNOWLEDGE GmbH
 
Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Andreas Granig
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software DevelopersVinodh Ram
 
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEBATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEOrtus Solutions, Corp
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...soniya singh
 
EY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityEY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityNeo4j
 
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxKnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxTier1 app
 
React Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief UtamaReact Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief UtamaHanief Utama
 
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideBuilding Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideChristina Lin
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantAxelRicardoTrocheRiq
 
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfGOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfAlina Yurenko
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...gurkirankumar98700
 
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024StefanoLambiase
 
Asset Management Software - Infographic
Asset Management Software - InfographicAsset Management Software - Infographic
Asset Management Software - InfographicHr365.us smith
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...MyIntelliSource, Inc.
 
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataAdobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataBradBedford3
 
What is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWhat is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWave PLM
 
Cloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEECloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEEVICTOR MAESTRE RAMIREZ
 

Recently uploaded (20)

Implementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureImplementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with Azure
 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)
 
Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software Developers
 
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEBATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
 
EY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityEY_Graph Database Powered Sustainability
EY_Graph Database Powered Sustainability
 
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxKnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
 
React Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief UtamaReact Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief Utama
 
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideBuilding Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service Consultant
 
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfGOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
 
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
 
Asset Management Software - Infographic
Asset Management Software - InfographicAsset Management Software - Infographic
Asset Management Software - Infographic
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
 
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
 
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataAdobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
 
What is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWhat is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need It
 
Cloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEECloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEE
 

Lesson 5

  • 1. HTML PROGRAMMING Lesson 5: Using tables and lists
  • 2. Lesson Objectives  By the end of this lesson you will be able to:  Create tables to display information  Make effective use of lists to display information  Change how information is displayed in a table
  • 3. Starter  In this lesson you are going to display information as lists and in tables, can you think of any software packages that you have used tables or lists?  Why do we use tables and lists?
  • 4. Creating a table... <html> <body> <p>Each table starts with a table tag. Each table row starts with a tr tag. Each table data starts with a td tag. </p> <h4>One column:</h4> <table border="1"> <tr> <td>100</td> </tr> </table> <h4>One row and three columns:</h4> <table border="1"> <tr> <td>100</td> <td>200</td> <td>300</td> </tr> </table> </body> </html> 100 100 200 300
  • 5. Create a table  Using tables can help to display information in a neat way  You have used tables before in other software, but they are slightly more difficult to create in HTML  Using the code provided, create a new webpage and save it as table.htm  Preview the website in Internet Explorer when finished. You might also want to try changing the size of the table border to see what happens. <html> <body> <p>Each table starts with a table tag. Each table row starts with a tr tag. Each table data starts with a td tag. </p> <h4>One column:</h4> <table border="1"> <tr> <td>100</td> </tr> </table> <h4>One row and three columns:</h4> <table border="1"> <tr> <td>100</td> <td>200</td> <td>300</td> </tr> </table> </body> </html>
  • 6. Using lists...  Sometimes a table is not always the best option, so we are also going to try and use HTML lists  There are 2 types of list, ordered and unordered  Type in the code provided to create a new webpage and save it as unorderedlist.htm  Preview your work in Internet Explorer to see how it looks.  Try adding some more items to your list <html> <body> <h4>An Unordered List:</h4> <ul> <li>Coffee</li> <li>Tea</li> <li>Milk</li> </ul> </body> </html>
  • 7. More lists...  We have created an unordered list, but we also want to find out how to create an ordered list  When you type in this code, each of the list items will automatically be numbered  Try typing in the HTML code provided to create a new webpage called orderedlist.htm  Save your work and then preview it in Internet Explorer  What is the difference between ordered and unordered lists? <html> <body> <h4>An Ordered List:</h4> <ol> <li>Coffee</li> <li>Tea</li> <li>Milk</li> </ol> </body> </html>
  • 8. Your task...  Using your Newcastle.htm file that you have been working on, you need to:  Create an unordered list to display the following:  Top places to visit in Newcastle:  Hancock Museum  Centre for Life  St James’ Park  Add the following table: Things to do in Newcastle Where? Shopping Eldon Square Ten pin bowling Westgate Road Cinema The Gate Remember to save and preview your work!
  • 9. Extension...  If you have reached this stage then you are doing exceptionally well – congratulations!  Here is a challenge for you:  Using the Internet, find out how to:  Change the colour of the cells in the table you have created  Change the colour of the text in the table you have created  Save your work then preview it in Internet
  • 10. Adding font colour and background colour <td bgcolor="red"><font color="white">100</td> <td bgcolor="yellow“><font color="blue">200</td> <td bgcolor="red"><font color="yellow">300</td> This code must go between the td tags
  • 11. Add a moving marquee  <font size="5" face="verdana" color="white">  <marquee>Newcastle are the BEST!!</marquee>
  • 12. Plenary...  Update your HTML tag table to explain the following:  <tr>  <td>  <ul>  <li>  <ol>  Remember to include an example from today’s lesson of where you have used these tags
  • 13. Summary  In this lesson you have:  Created tables to display information  Made effective use of lists to display information  Changed how information is displayed in a table