SlideShare ist ein Scribd-Unternehmen logo
1 von 11
Adding Tables to your Web Page
Starter Activity: Scrolling Marquee
Investigate how to code a html scrolling marquee
and then create one that scrolls your name across
the screen.
Adding Tables to your Web Page
In this lesson you will learn how add tables with
multiple rows and columns using html. You will add
two tables on your zoo homepage. One to include
animals and the other form a website menu.
Lesson
Objectives
 Be able to create a table on a web page
 Be able to add color to a table on a web page
 Be able to add rows and columns to a table
 Be able to find errors in code
Adding Tables to your Web Page
Adding a Table to your Web page
Tables let people present data in a column format.
They are created through the use of a
<table>...</table> tag. Each column has its own
tag: <td>...</td>. The columns are surrounded by
the <tr>...</tr> tag.
Adding Tables to your Web Page
Task 13: Creating a Table
Load the text editor and enter the following code:
<html>
<head>
<title> This is a page using tables </title>
</head>
<body bgcolor="ffffff" text="000000">
<h1>A Web Page Using Tables</h1>
<table border="1">
<tr>
<td>This is column one</td>
<td>This is column two</td>
<td>This is column three</td>
</tr>
</table>
</body>
</html>
Save the file as table1.html and then preview your work.
Adding Tables to your Web Page
Task 14: Adding Colour to a Table
Load the text editor and open your HTML document: table1.html
At the relevant points add the tags and text that appear in red.
<table border="1">
<tr>
<td bgcolor="#000000">
<font color="#ffffff">
<b>This is column one</b>
<br>
I enjoy coding in HTML code.</font>
</td>
<td bgcolor="#bee3c2"> <b>This is column two</b></td>
<td bgcolor="#ff8000">
<font color="#804000">
<b>This is column three<br>I am so creative.</b>
</font>
</td>
</tr>
Save the file as table2.html and preview your work
Adding Tables to your Web Page
Task 15: Multiple Rows and Columns
Load the text editor and enter the following code:
<html>
<head>
<title> Rows </title>
</head>
<body>
<h1>Here's a table with two rows</h1>
<table border="1">
<tr>
<td>column 1 row 1</td>
<td>column 2 row 1</td>
</tr>
<tr>
<td>column 1 row 2</td>
<td>column 2 row 2</td>
</tr>
</table>
</body>
</html>
Save the file as table3.html and preview your work
Adding Tables to your Web Page
Task 16: Zoo Homepage
1.Load the text editor and open your HTML document: zoohomepage.html
2.Create a table 4 columns and 1 row towards the top of your page – this is
going form your website menu
3.Add an appropriate table background colour (For hex codes visit:
http://www.colorpicker.com/)
4.Add the word ‘Homepage’ in the first column, ‘Animals’ in the second,
‘Park Info’ in the third, ‘Photographs’ in the fourth and ‘Contact’ in the
fifth.
5.Create a second table complete with border at the bottom of your page;
3 columns and 3 rows
6.In each cell add the name of one animal that people can see at the zoo.
(Nine animals in total)
7.Save the document and then preview your work.
Adding Tables to your Web Page
Plenary: Find the Errors in this Code
<table boder="1">
<tr>
<td width="50%">
Red <br>
Yellow <br>
<td>
<td>
Black <br>
Pink <br>
</td>
</tr>
<tr>
<td>
<p>What is your favourite text colour?</p>
</td>
<td>
<img scr="red.jpg" />
</td>
</tr
<table>
Adding Tables to your Web Page
There are 5 in total
Answers: Find the Errors in this Code
<table border="1">
<tr>
<td width="50%">
Red <br>
Yellow <br>
</td>
<td>
Black <br>
Pink <br>
</td>
</tr>
<tr>
<td>
<p>What is your favourite text colour?</p>
</td>
<td>
<img src="red.jpg" />
</td>
</tr>
</table>
Adding Tables to your Web Page
There are 5 in total
Keywords
 Be able to create a table on a web page
 Be able to add color to a table on a web page
 Be able to add rows and columns to a table
 Be able to find errors in code
Objectives
 Marquee
 Table
 Rows
 Columns
 Cells




Adding Tables to your Web Page

Weitere ähnliche Inhalte

Was ist angesagt?

Web Fundamentals And Html Chapter 1
Web Fundamentals And Html Chapter 1Web Fundamentals And Html Chapter 1
Web Fundamentals And Html Chapter 1
raileeanne
 
Html 5-tables-forms-frames (1)
Html 5-tables-forms-frames (1)Html 5-tables-forms-frames (1)
Html 5-tables-forms-frames (1)
club23
 

Was ist angesagt? (20)

Html Table
Html TableHtml Table
Html Table
 
HTML (Hyper Text Markup Language) by Mukesh
HTML (Hyper Text Markup Language) by MukeshHTML (Hyper Text Markup Language) by Mukesh
HTML (Hyper Text Markup Language) by Mukesh
 
HTML Table Tags
HTML Table TagsHTML Table Tags
HTML Table Tags
 
HTML: Tables and Forms
HTML: Tables and FormsHTML: Tables and Forms
HTML: Tables and Forms
 
MS Office Tips
MS Office TipsMS Office Tips
MS Office Tips
 
HTML [Basic] --by Abdulla-al Baset
HTML [Basic] --by Abdulla-al BasetHTML [Basic] --by Abdulla-al Baset
HTML [Basic] --by Abdulla-al Baset
 
Web forms and html (lect 3)
Web forms and html (lect 3)Web forms and html (lect 3)
Web forms and html (lect 3)
 
CSS in HTML
CSS in HTMLCSS in HTML
CSS in HTML
 
Ado Presentation
Ado PresentationAdo Presentation
Ado Presentation
 
HTML Basic
HTML BasicHTML Basic
HTML Basic
 
Html presentation
Html presentationHtml presentation
Html presentation
 
Frames tables forms
Frames tables formsFrames tables forms
Frames tables forms
 
HTML
HTMLHTML
HTML
 
html tags
 html tags html tags
html tags
 
FYBSC IT Web Programming Unit I HTML 5 & andcss
FYBSC IT Web Programming Unit I HTML 5 & andcssFYBSC IT Web Programming Unit I HTML 5 & andcss
FYBSC IT Web Programming Unit I HTML 5 & andcss
 
Web Fundamentals And Html Chapter 1
Web Fundamentals And Html Chapter 1Web Fundamentals And Html Chapter 1
Web Fundamentals And Html Chapter 1
 
Html3
Html3Html3
Html3
 
Html3
Html3Html3
Html3
 
Html tutorials by www.dmdiploma.com
Html tutorials by www.dmdiploma.comHtml tutorials by www.dmdiploma.com
Html tutorials by www.dmdiploma.com
 
Html 5-tables-forms-frames (1)
Html 5-tables-forms-frames (1)Html 5-tables-forms-frames (1)
Html 5-tables-forms-frames (1)
 

Ähnlich wie Adding tables to your web page

Chapter 4 class presentation
Chapter 4 class presentationChapter 4 class presentation
Chapter 4 class presentation
cmurphysvhs
 
Making your web page more interesting
Making your web page more interestingMaking your web page more interesting
Making your web page more interesting
cachs_computing
 

Ähnlich wie Adding tables to your web page (20)

PPT-203105353-1.pdf
PPT-203105353-1.pdfPPT-203105353-1.pdf
PPT-203105353-1.pdf
 
HTML.pptx
HTML.pptxHTML.pptx
HTML.pptx
 
Intodcution to Html
Intodcution to HtmlIntodcution to Html
Intodcution to Html
 
Unit 2 (it workshop)
Unit 2 (it workshop)Unit 2 (it workshop)
Unit 2 (it workshop)
 
belajar HTML 3
belajar HTML 3belajar HTML 3
belajar HTML 3
 
Html
HtmlHtml
Html
 
HyperTextMarkupLanguage.ppt
HyperTextMarkupLanguage.pptHyperTextMarkupLanguage.ppt
HyperTextMarkupLanguage.ppt
 
HTML Tutorials
HTML TutorialsHTML Tutorials
HTML Tutorials
 
BITM3730 9-13.pptx
BITM3730 9-13.pptxBITM3730 9-13.pptx
BITM3730 9-13.pptx
 
Html and css
Html and cssHtml and css
Html and css
 
CSUN 2020: CSS Display Properties Versus HTML Semantics
CSUN 2020: CSS Display Properties Versus HTML SemanticsCSUN 2020: CSS Display Properties Versus HTML Semantics
CSUN 2020: CSS Display Properties Versus HTML Semantics
 
Html 5
Html 5Html 5
Html 5
 
Getting into HTML
Getting into HTMLGetting into HTML
Getting into HTML
 
HTML 4.0
HTML 4.0HTML 4.0
HTML 4.0
 
Lect# 1 html part ii
Lect# 1 html part iiLect# 1 html part ii
Lect# 1 html part ii
 
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
 
Unit 2.9 Tables
Unit 2.9 TablesUnit 2.9 Tables
Unit 2.9 Tables
 
29042023.pptx
29042023.pptx29042023.pptx
29042023.pptx
 
Making your web page more interesting
Making your web page more interestingMaking your web page more interesting
Making your web page more interesting
 

Mehr von cachs_computing (20)

It and computing assessment
It and computing assessmentIt and computing assessment
It and computing assessment
 
Forest archery game
Forest archery gameForest archery game
Forest archery game
 
Scratching the surface
Scratching the surfaceScratching the surface
Scratching the surface
 
Creating your first web page
Creating your first web pageCreating your first web page
Creating your first web page
 
Introduction
IntroductionIntroduction
Introduction
 
Desktop publishing
Desktop publishingDesktop publishing
Desktop publishing
 
Spreadsheets
SpreadsheetsSpreadsheets
Spreadsheets
 
Internet
InternetInternet
Internet
 
Getting technical introduction
Getting technical introductionGetting technical introduction
Getting technical introduction
 
It and computing assessment
It and computing assessmentIt and computing assessment
It and computing assessment
 
Introduction
IntroductionIntroduction
Introduction
 
Word processing 2
Word processing 2Word processing 2
Word processing 2
 
Word processing 1
Word processing 1Word processing 1
Word processing 1
 
Desktop publishing
Desktop publishingDesktop publishing
Desktop publishing
 
Spreadsheets
SpreadsheetsSpreadsheets
Spreadsheets
 
Introduction functional skills
Introduction functional skillsIntroduction functional skills
Introduction functional skills
 
Internet
InternetInternet
Internet
 
Search engines
Search enginesSearch engines
Search engines
 
Fetch execute cycle
Fetch execute cycleFetch execute cycle
Fetch execute cycle
 
Algorithms
AlgorithmsAlgorithms
Algorithms
 

Kürzlich hochgeladen

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Kürzlich hochgeladen (20)

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 

Adding tables to your web page

  • 1. Adding Tables to your Web Page
  • 2. Starter Activity: Scrolling Marquee Investigate how to code a html scrolling marquee and then create one that scrolls your name across the screen. Adding Tables to your Web Page
  • 3. In this lesson you will learn how add tables with multiple rows and columns using html. You will add two tables on your zoo homepage. One to include animals and the other form a website menu. Lesson Objectives  Be able to create a table on a web page  Be able to add color to a table on a web page  Be able to add rows and columns to a table  Be able to find errors in code Adding Tables to your Web Page
  • 4. Adding a Table to your Web page Tables let people present data in a column format. They are created through the use of a <table>...</table> tag. Each column has its own tag: <td>...</td>. The columns are surrounded by the <tr>...</tr> tag. Adding Tables to your Web Page
  • 5. Task 13: Creating a Table Load the text editor and enter the following code: <html> <head> <title> This is a page using tables </title> </head> <body bgcolor="ffffff" text="000000"> <h1>A Web Page Using Tables</h1> <table border="1"> <tr> <td>This is column one</td> <td>This is column two</td> <td>This is column three</td> </tr> </table> </body> </html> Save the file as table1.html and then preview your work. Adding Tables to your Web Page
  • 6. Task 14: Adding Colour to a Table Load the text editor and open your HTML document: table1.html At the relevant points add the tags and text that appear in red. <table border="1"> <tr> <td bgcolor="#000000"> <font color="#ffffff"> <b>This is column one</b> <br> I enjoy coding in HTML code.</font> </td> <td bgcolor="#bee3c2"> <b>This is column two</b></td> <td bgcolor="#ff8000"> <font color="#804000"> <b>This is column three<br>I am so creative.</b> </font> </td> </tr> Save the file as table2.html and preview your work Adding Tables to your Web Page
  • 7. Task 15: Multiple Rows and Columns Load the text editor and enter the following code: <html> <head> <title> Rows </title> </head> <body> <h1>Here's a table with two rows</h1> <table border="1"> <tr> <td>column 1 row 1</td> <td>column 2 row 1</td> </tr> <tr> <td>column 1 row 2</td> <td>column 2 row 2</td> </tr> </table> </body> </html> Save the file as table3.html and preview your work Adding Tables to your Web Page
  • 8. Task 16: Zoo Homepage 1.Load the text editor and open your HTML document: zoohomepage.html 2.Create a table 4 columns and 1 row towards the top of your page – this is going form your website menu 3.Add an appropriate table background colour (For hex codes visit: http://www.colorpicker.com/) 4.Add the word ‘Homepage’ in the first column, ‘Animals’ in the second, ‘Park Info’ in the third, ‘Photographs’ in the fourth and ‘Contact’ in the fifth. 5.Create a second table complete with border at the bottom of your page; 3 columns and 3 rows 6.In each cell add the name of one animal that people can see at the zoo. (Nine animals in total) 7.Save the document and then preview your work. Adding Tables to your Web Page
  • 9. Plenary: Find the Errors in this Code <table boder="1"> <tr> <td width="50%"> Red <br> Yellow <br> <td> <td> Black <br> Pink <br> </td> </tr> <tr> <td> <p>What is your favourite text colour?</p> </td> <td> <img scr="red.jpg" /> </td> </tr <table> Adding Tables to your Web Page There are 5 in total
  • 10. Answers: Find the Errors in this Code <table border="1"> <tr> <td width="50%"> Red <br> Yellow <br> </td> <td> Black <br> Pink <br> </td> </tr> <tr> <td> <p>What is your favourite text colour?</p> </td> <td> <img src="red.jpg" /> </td> </tr> </table> Adding Tables to your Web Page There are 5 in total
  • 11. Keywords  Be able to create a table on a web page  Be able to add color to a table on a web page  Be able to add rows and columns to a table  Be able to find errors in code Objectives  Marquee  Table  Rows  Columns  Cells     Adding Tables to your Web Page