SlideShare une entreprise Scribd logo
1  sur  12
Creating Table
Tutorial 4
2 ways to insert table of information
on Web page:
• Using:
– Text Table – contains only text, evenly spaced out
on the page in rows and columns
– Graphical Table – it appears as graphical element
on the Web page and allows you to include design
elements such as color, shading, and borders in a
table.
Kinds of Fonts
a. Fixed-Width fonts – also known as
typewriter font.
- font that allots the same amount of
space to each character and to the
empty spaces between characters.
b. Proportional fonts – fonts in which the
width of each character differs with
the character’s shape.
Defining Table Structure
with HTML
• <TABLE> and </TABLE> tags – identify
the beginning and end of the table.
• <TR> and </TR> tags – identify the
beginning and end of each table row.
• <TD> and </TD> - identify the
beginning and end of each table cell.
• <TH> and </TH> - identify text that will
acts as table headers.
General syntax of Graphical
table:
<TABLE>
<TR>
<TD> First Cell </TD>
<TD> Second Cell </TD>
</TR>
<TR>
<TD> Third Cell </TD>
<TD> Fourth Cell </TD>
</TR>
</TABLE>
First cell Second Cell
Third Cell Fourth Cell
Graphical representation
Creating Table Caption
• Syntax:
<CAPTION ALIGN = value>
Caption Text </CAPTION>
Modifying the appearance of
a table
• ALIGN - controls how the table is aligned on
the page Possible values are LEFT, RIGHT, and
CENTER.
• BORDER – specifies the thickness of the table
border in pixels
• BGCOLOR – set equal to the background
color to use in the cells of the table.
• WIDTH – sets the fixed width of the table.
Value of WIDTH can be any number and can
be pixels or a percentage.
• CELLSPACING – use to increase the size
of the border around individual table
cell.
• CELLPADDING – use to increase the gap
between the cell text and the surrounding cell
border.
• HEIGHT – sets the fixed height of the table.
• VALIGN – use to control the vertical
placement of text within the table cell.
• COLS – sets the number of columns in a table.
• FRAME – controls which part of the table’s
outer border are rendered. FRAME can take
on the values: ABOVE, BELOW, BORDER, BOX,
HSIDES.
• RULES – defines the type of inside table
border to show. Values for RULE can be
NONE, GROUPS, ROWS, COLS, or ALL.
Example:
<TABLE BORDER = 2 CELLPADDING = 4 FRAME = VOID
ALIGN = CENTER>
<PRE> tag – used to display
preformatted text which is text
formatted in ways that you want
retained in your web page.
– Spanning cell – is a cell that occupies
more that one row or column in a
table.
Syntax:
<TD ROWSPAN = value COLSPAN =
value> Cell Text </TD>
Fin

Contenu connexe

Tendances (14)

Html web designing using tables
Html web designing using tablesHtml web designing using tables
Html web designing using tables
 
Computer language - Html tables
Computer language - Html tablesComputer language - Html tables
Computer language - Html tables
 
HTML Tables
HTML TablesHTML Tables
HTML Tables
 
Images and Tables in HTML
Images and Tables in HTMLImages and Tables in HTML
Images and Tables in HTML
 
Tabulation
TabulationTabulation
Tabulation
 
4.3 table styling
4.3 table styling4.3 table styling
4.3 table styling
 
Tables
TablesTables
Tables
 
Html table
Html tableHtml table
Html table
 
Tabulation of data
Tabulation of dataTabulation of data
Tabulation of data
 
Table structure introduction
Table structure introductionTable structure introduction
Table structure introduction
 
Types of table
Types of tableTypes of table
Types of table
 
HTML Tables
HTML TablesHTML Tables
HTML Tables
 
Web design - Working with tables in HTML
Web design - Working with tables in HTMLWeb design - Working with tables in HTML
Web design - Working with tables in HTML
 
QT
QTQT
QT
 

En vedette

Comics cultural week
Comics cultural weekComics cultural week
Comics cultural weekCEIP Europa
 
Cómics semana cultural
Cómics semana culturalCómics semana cultural
Cómics semana culturalCEIP Europa
 
Linguistic immersion camp of Jérica.- Sunday
Linguistic immersion camp of Jérica.- SundayLinguistic immersion camp of Jérica.- Sunday
Linguistic immersion camp of Jérica.- SundayCEIP Europa
 
Tutorial 9 multimedia web page
Tutorial 9 multimedia web pageTutorial 9 multimedia web page
Tutorial 9 multimedia web pageMaxie Santos
 
Social Ch 13 Questions
Social Ch 13 QuestionsSocial Ch 13 Questions
Social Ch 13 Questionsgueste1a6a6
 
Collages Tercer Ciclo
Collages Tercer CicloCollages Tercer Ciclo
Collages Tercer CicloCEIP Europa
 
Andalusia Day at Europa School
Andalusia Day at Europa SchoolAndalusia Day at Europa School
Andalusia Day at Europa SchoolCEIP Europa
 
Andalucía Coeducativa
Andalucía CoeducativaAndalucía Coeducativa
Andalucía CoeducativaCEIP Europa
 
Paisajes Andaluces
Paisajes AndalucesPaisajes Andaluces
Paisajes AndalucesCEIP Europa
 
Basic internet pnhs inset
Basic internet   pnhs insetBasic internet   pnhs inset
Basic internet pnhs insetMaxie Santos
 
Linguistic immersion camp of Jérica.- Friday
Linguistic immersion camp of Jérica.- FridayLinguistic immersion camp of Jérica.- Friday
Linguistic immersion camp of Jérica.- FridayCEIP Europa
 
Conditional statement
Conditional statementConditional statement
Conditional statementMaxie Santos
 

En vedette (19)

Europa News set
Europa News setEuropa News set
Europa News set
 
Script
ScriptScript
Script
 
Comics cultural week
Comics cultural weekComics cultural week
Comics cultural week
 
Cómics semana cultural
Cómics semana culturalCómics semana cultural
Cómics semana cultural
 
Linguistic immersion camp of Jérica.- Sunday
Linguistic immersion camp of Jérica.- SundayLinguistic immersion camp of Jérica.- Sunday
Linguistic immersion camp of Jérica.- Sunday
 
Tut 06 (forms)
Tut 06 (forms)Tut 06 (forms)
Tut 06 (forms)
 
Html tutorial 5
Html tutorial 5Html tutorial 5
Html tutorial 5
 
Guernica is...
Guernica is...Guernica is...
Guernica is...
 
Tutorial 9 multimedia web page
Tutorial 9 multimedia web pageTutorial 9 multimedia web page
Tutorial 9 multimedia web page
 
Social Ch 13 Questions
Social Ch 13 QuestionsSocial Ch 13 Questions
Social Ch 13 Questions
 
Collages Tercer Ciclo
Collages Tercer CicloCollages Tercer Ciclo
Collages Tercer Ciclo
 
Andalusia Day at Europa School
Andalusia Day at Europa SchoolAndalusia Day at Europa School
Andalusia Day at Europa School
 
Andalucía Coeducativa
Andalucía CoeducativaAndalucía Coeducativa
Andalucía Coeducativa
 
Paisajes Andaluces
Paisajes AndalucesPaisajes Andaluces
Paisajes Andaluces
 
Html tutorial 5
Html tutorial 5Html tutorial 5
Html tutorial 5
 
Basic internet pnhs inset
Basic internet   pnhs insetBasic internet   pnhs inset
Basic internet pnhs inset
 
Linguistic immersion camp of Jérica.- Friday
Linguistic immersion camp of Jérica.- FridayLinguistic immersion camp of Jérica.- Friday
Linguistic immersion camp of Jérica.- Friday
 
Conditional statement
Conditional statementConditional statement
Conditional statement
 
Computer virus
Computer virusComputer virus
Computer virus
 

Similaire à Html tut 04

Similaire à Html tut 04 (20)

4-Tables in HTMLhtml tavle table in the html
4-Tables in HTMLhtml tavle table in the html4-Tables in HTMLhtml tavle table in the html
4-Tables in HTMLhtml tavle table in the html
 
3
33
3
 
Lecture 2.ppt
Lecture 2.pptLecture 2.ppt
Lecture 2.ppt
 
Css
CssCss
Css
 
HTML Tables in Omeka
HTML Tables in OmekaHTML Tables in Omeka
HTML Tables in Omeka
 
Html and css
Html and cssHtml and css
Html and css
 
Html tables
Html tablesHtml tables
Html tables
 
Microsoft powerpoint´s basic text formatting tools
Microsoft powerpoint´s basic text formatting toolsMicrosoft powerpoint´s basic text formatting tools
Microsoft powerpoint´s basic text formatting tools
 
Layouts
Layouts Layouts
Layouts
 
HTMLTables.ppt
HTMLTables.pptHTMLTables.ppt
HTMLTables.ppt
 
2. HTML Tables.ppt
2. HTML Tables.ppt2. HTML Tables.ppt
2. HTML Tables.ppt
 
MIS 226: Chapter 4
MIS 226: Chapter 4MIS 226: Chapter 4
MIS 226: Chapter 4
 
Response Tables.ppt
Response Tables.pptResponse Tables.ppt
Response Tables.ppt
 
Guidelines of Tables - APA Style - 7th Edition
Guidelines of Tables - APA Style - 7th EditionGuidelines of Tables - APA Style - 7th Edition
Guidelines of Tables - APA Style - 7th Edition
 
Tables in databases - Relationships and diagrams
Tables in  databases - Relationships and diagramsTables in  databases - Relationships and diagrams
Tables in databases - Relationships and diagrams
 
6_CasCadingStylesSheetsCSS.ppt
6_CasCadingStylesSheetsCSS.ppt6_CasCadingStylesSheetsCSS.ppt
6_CasCadingStylesSheetsCSS.ppt
 
Tables
TablesTables
Tables
 
WHPL Introduction to Excel
WHPL Introduction to ExcelWHPL Introduction to Excel
WHPL Introduction to Excel
 
Lecture_4.pdf
Lecture_4.pdfLecture_4.pdf
Lecture_4.pdf
 
Module 5.pptx
Module 5.pptxModule 5.pptx
Module 5.pptx
 

Html tut 04

  • 2. 2 ways to insert table of information on Web page: • Using: – Text Table – contains only text, evenly spaced out on the page in rows and columns – Graphical Table – it appears as graphical element on the Web page and allows you to include design elements such as color, shading, and borders in a table.
  • 3. Kinds of Fonts a. Fixed-Width fonts – also known as typewriter font. - font that allots the same amount of space to each character and to the empty spaces between characters. b. Proportional fonts – fonts in which the width of each character differs with the character’s shape.
  • 4. Defining Table Structure with HTML • <TABLE> and </TABLE> tags – identify the beginning and end of the table. • <TR> and </TR> tags – identify the beginning and end of each table row. • <TD> and </TD> - identify the beginning and end of each table cell. • <TH> and </TH> - identify text that will acts as table headers.
  • 5. General syntax of Graphical table: <TABLE> <TR> <TD> First Cell </TD> <TD> Second Cell </TD> </TR> <TR> <TD> Third Cell </TD> <TD> Fourth Cell </TD> </TR> </TABLE>
  • 6. First cell Second Cell Third Cell Fourth Cell Graphical representation
  • 7. Creating Table Caption • Syntax: <CAPTION ALIGN = value> Caption Text </CAPTION>
  • 8. Modifying the appearance of a table • ALIGN - controls how the table is aligned on the page Possible values are LEFT, RIGHT, and CENTER. • BORDER – specifies the thickness of the table border in pixels • BGCOLOR – set equal to the background color to use in the cells of the table. • WIDTH – sets the fixed width of the table. Value of WIDTH can be any number and can be pixels or a percentage.
  • 9. • CELLSPACING – use to increase the size of the border around individual table cell. • CELLPADDING – use to increase the gap between the cell text and the surrounding cell border. • HEIGHT – sets the fixed height of the table. • VALIGN – use to control the vertical placement of text within the table cell. • COLS – sets the number of columns in a table.
  • 10. • FRAME – controls which part of the table’s outer border are rendered. FRAME can take on the values: ABOVE, BELOW, BORDER, BOX, HSIDES. • RULES – defines the type of inside table border to show. Values for RULE can be NONE, GROUPS, ROWS, COLS, or ALL. Example: <TABLE BORDER = 2 CELLPADDING = 4 FRAME = VOID ALIGN = CENTER>
  • 11. <PRE> tag – used to display preformatted text which is text formatted in ways that you want retained in your web page. – Spanning cell – is a cell that occupies more that one row or column in a table. Syntax: <TD ROWSPAN = value COLSPAN = value> Cell Text </TD>
  • 12. Fin