SlideShare a Scribd company logo
Lecture 8

In this lecture, we will learn about

    -   How to create Table
    -   Escape Sequences: Special Characters

Tables are very useful while creating HTML pages; especially tables solve the alignment
problem. A table tag has headings where you explain what the columns/rows include,
rows for information, and cells for each item. In the following table, the first two rows
contain the heading information, each detail row explains an HTML table tag, and each
cell contains a paired tag or an explanation of the tag's function.

                                       Table Elements
    Element                                       Description
<TABLE> ...      defines a table in HTML. If the BORDER attribute is present, your
</TABLE>         browser displays the table with a border.
<CAPTION> ... </ defines the caption for the title of the table. The default position of the
CAPTION>         title is centered at the top of the table. The attribute ALIGN=BOTTOM
                 can be used to position the caption below the table.
                 NOTE: Any kind of markup tag can be used in the caption.
<TR> ... </TR>   specifies a table row within a table. You may define default attributes
                 for the entire row: ALIGN (LEFT, CENTER, RIGHT) and/or VALIGN
                 (TOP, MIDDLE, BOTTOM).
<TH> ... </TH>       defines a table header cell. By default the text in this cell is bold and
                     centered. Table header cells may contain other attributes to determine
                     the characteristics of the cell and/or its contents.
<TD> ... </TD>       defines a table data cell. By default the text in this cell is aligned left
                     and centered vertically. Table data cells may contain other attributes
                     to determine the characteristics of the cell and/or its contents.

Here is the single cell table, the simplest table possible.

<CENTER>

          <table border=1>

                    <tr>

                           <td>here is a single-celled table!</td>

                  </tr>
          </table>

</CENTER>
The output on the browser is
                               here is a single-celled table!


<html>
         <head>
               <title> Using Table Tag</title>
         </head>

         <body>
               <table border=1>
                      <caption> Time Table for Mar-June 2005</caption>
                      <tr>
                             <th></th>
                             <th>Monday</th>
                             <th>Tuesday</th>
                             <th>Wednesday</th>
                             <th>Thrusday</th>
                             <th>Friday</th>
                      </tr>

                       <tr>
                               <td>9:30-10:20</td>
                               <td>-</td>
                               <td>-</td>
                               <td>-</td>
                               <td>-</td>
                               <td><font color="blue">109</font></td>
                       </tr>

                       <tr>
                               <td>10:30-11:20</td>
                               <td>-</td>
                               <td>-</td>
                               <td>-</td>
                               <td>-</td>
                               <td><font color="blue">109</font></td>
                       </tr>

                       <tr>
                               <td>11:30-12:20</td>
                               <td>-</td>
                               <td>-</td>
                               <td>-</td>
                               <td>-</td>
<td><font color="blue">109</font></td>
</tr>

<tr>
        <td>12:30-1:20</td>
        <td>-</td>
        <td>-</td>
        <td><font color="blue">312</font></td>
        <td>-</td>
        <td>-</td>
</tr>

<tr>
        <td>1:30-2:20</td>
        <td>-</td>
        <td><font color="blue">306</font></td>
        <td>-</td>
        <td>-</td>
        <td>-</td>
</tr>

<tr>
        <td>2:30-3:20</td>
        <td>-</td>
        <td><font color="blue">306</font></td>
        <td>-</td>
        <td><font color="blue">309</font></td>
        <td>-</td>
</tr>

<tr>
        <td>3:30-4:20</td>
        <td>-</td>
        <td>-</td>
        <td>-</td>
        <td><font color="blue">309</font></td>
        <td>-</td>
</tr>

<tr>
        <td>4:30-5:20</td>
        <td>-</td>
        <td>-</td>
        <td>-</td>
        <td><font color="blue">309</font></td>
        <td>-</td>
</tr>
             <table>
       </body>
</html>

                Time Table for Mar-June 2005
              Monday Tuesday Wednesday Thrusday Friday
9:30-10:20    -      -        -           -    109
10:30-11:20   -      -        -           -    109
11:30-12:20   -      -        -           -    109
12:30-1:20    -      -        312         -    -
1:30-2:20     -      306      -           -    -
2:30-3:20     -      306      -           309  -
3:30-4:20     -      -        -           309  -
4:30-5:20     -      -        -           309  -




Escape Sequences: Special Characters (a.k.a. Character Entities)

Special characters are composed of short sequence of characters that are translated by the
browser and displayed as a single character.
Special characters begin with an ampersand(&) and end with a semicolon (;), for example
&nbsp, which is used for giving spaces between words or characters

To understand &nbsp; type the following code in notepad
<html>
       <head>
              <title>Using nbsp </title>
       </head>

       <body>
             My name is Harshit                 Kumar.
       </body>
</html>

The output is
My name is Harshit Kumar.

Although I gave so many spaces between “Harhsit” and “Kumar”, still the output shows
only one space.
This means that browser shrink the spaces, so to insert spaces, we need &nbsp;.

Type the following code in notepad
<html>
       <head>
              <title>Using nbsp </title>
       </head>

       <body>
       My name is Harshit&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Kumar.
       </body>
</html>


The output is
My name is Harshit          Kumar.

------------------------------------------------------Finish----------------------------------------------

More Related Content

What's hot

HTML Table Tags
HTML Table TagsHTML Table Tags
HTML Table Tags
Kainat Ilyas
 
Frames tables forms
Frames tables formsFrames tables forms
Frames tables forms
nobel mujuji
 
Lect# 1 html part ii
Lect# 1 html part iiLect# 1 html part ii
Lect# 1 html part ii
MuhammadAbdulSattarC
 
Tables and Forms in HTML
Tables and Forms in HTMLTables and Forms in HTML
Tables and Forms in HTMLDoncho Minkov
 
Html basics 9 meta background
Html basics 9 meta backgroundHtml basics 9 meta background
Html basics 9 meta backgroundH K
 
Web Technology Lab File
Web Technology Lab FileWeb Technology Lab File
Web Technology Lab File
Kandarp Tiwari
 
TYBSC prac soln
TYBSC prac solnTYBSC prac soln
TYBSC prac solntushar1001
 
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
 
14. add data in symfony4
14. add data in symfony4 14. add data in symfony4
14. add data in symfony4
Razvan Raducanu, PhD
 

What's hot (9)

HTML Table Tags
HTML Table TagsHTML Table Tags
HTML Table Tags
 
Frames tables forms
Frames tables formsFrames tables forms
Frames tables forms
 
Lect# 1 html part ii
Lect# 1 html part iiLect# 1 html part ii
Lect# 1 html part ii
 
Tables and Forms in HTML
Tables and Forms in HTMLTables and Forms in HTML
Tables and Forms in HTML
 
Html basics 9 meta background
Html basics 9 meta backgroundHtml basics 9 meta background
Html basics 9 meta background
 
Web Technology Lab File
Web Technology Lab FileWeb Technology Lab File
Web Technology Lab File
 
TYBSC prac soln
TYBSC prac solnTYBSC prac soln
TYBSC prac soln
 
Html 5-tables-forms-frames (1)
Html 5-tables-forms-frames (1)Html 5-tables-forms-frames (1)
Html 5-tables-forms-frames (1)
 
14. add data in symfony4
14. add data in symfony4 14. add data in symfony4
14. add data in symfony4
 

Similar to Html basics 7 table

Web I - 03 - Tables
Web I - 03 - TablesWeb I - 03 - Tables
Web I - 03 - Tables
Randy Connolly
 
01 HTML-Tables-1.pptx
01 HTML-Tables-1.pptx01 HTML-Tables-1.pptx
01 HTML-Tables-1.pptx
AhmedAlmughalis1
 
v4-html-table-210321161424.pptx
v4-html-table-210321161424.pptxv4-html-table-210321161424.pptx
v4-html-table-210321161424.pptx
HemantBansal35
 
HTML
HTMLHTML
Lecture 5 html table
Lecture 5 html tableLecture 5 html table
Lecture 5 html table
AliMUSSA3
 
Table structure introduction
Table structure introductionTable structure introduction
Table structure introduction
nobel mujuji
 
Html
HtmlHtml
Lecture-4.pptx
Lecture-4.pptxLecture-4.pptx
Lecture-4.pptx
vishal choudhary
 
WEP4 and 5.pptx
WEP4 and 5.pptxWEP4 and 5.pptx
WEP4 and 5.pptx
MLikithMahendra
 
Xml and xslt
Xml and xsltXml and xslt
Xml and xslt
SadahAnjumShanto
 
RDBMS oracle function RDBMSRDBMSRDBMS.pptx
RDBMS oracle function RDBMSRDBMSRDBMS.pptxRDBMS oracle function RDBMSRDBMSRDBMS.pptx
RDBMS oracle function RDBMSRDBMSRDBMS.pptx
sanjutoppo93
 
05 01 tabelas
05 01 tabelas05 01 tabelas
05 01 tabelas
Vasco Ferreira
 
Session3 part2
Session3 part2Session3 part2
table html web programing
table  html  web programingtable  html  web programing
table html web programing
lodhran-hayat
 
Html Table
Html TableHtml Table
Html Table
nehashinde41
 
Table and Form HTML&CSS
Table and Form HTML&CSSTable and Form HTML&CSS
Table and Form HTML&CSS
Yaowaluck Promdee
 
Html.pptx
Html.pptxHtml.pptx

Similar to Html basics 7 table (20)

Web I - 03 - Tables
Web I - 03 - TablesWeb I - 03 - Tables
Web I - 03 - Tables
 
01 HTML-Tables-1.pptx
01 HTML-Tables-1.pptx01 HTML-Tables-1.pptx
01 HTML-Tables-1.pptx
 
v4-html-table-210321161424.pptx
v4-html-table-210321161424.pptxv4-html-table-210321161424.pptx
v4-html-table-210321161424.pptx
 
HTML Tables
HTML TablesHTML Tables
HTML Tables
 
HTML
HTMLHTML
HTML
 
Lecture 5 html table
Lecture 5 html tableLecture 5 html table
Lecture 5 html table
 
Table structure introduction
Table structure introductionTable structure introduction
Table structure introduction
 
Html
HtmlHtml
Html
 
Lecture-4.pptx
Lecture-4.pptxLecture-4.pptx
Lecture-4.pptx
 
WEP4 and 5.pptx
WEP4 and 5.pptxWEP4 and 5.pptx
WEP4 and 5.pptx
 
Xml and xslt
Xml and xsltXml and xslt
Xml and xslt
 
RDBMS oracle function RDBMSRDBMSRDBMS.pptx
RDBMS oracle function RDBMSRDBMSRDBMS.pptxRDBMS oracle function RDBMSRDBMSRDBMS.pptx
RDBMS oracle function RDBMSRDBMSRDBMS.pptx
 
05 01 tabelas
05 01 tabelas05 01 tabelas
05 01 tabelas
 
Session3 part2
Session3 part2Session3 part2
Session3 part2
 
table html web programing
table  html  web programingtable  html  web programing
table html web programing
 
Html Table
Html TableHtml Table
Html Table
 
Html&css lesson 2
Html&css lesson 2Html&css lesson 2
Html&css lesson 2
 
lklklk
lklklklklklk
lklklk
 
Table and Form HTML&CSS
Table and Form HTML&CSSTable and Form HTML&CSS
Table and Form HTML&CSS
 
Html.pptx
Html.pptxHtml.pptx
Html.pptx
 

More from H K

Assignment4
Assignment4Assignment4
Assignment4H K
 
Assignment3
Assignment3Assignment3
Assignment3
H K
 
Induction
InductionInduction
Induction
H K
 
Solution3
Solution3Solution3
Solution3
H K
 
Solution2
Solution2Solution2
Solution2
H K
 
Mid-
Mid-Mid-
Mid-
H K
 
Assignment4
Assignment4Assignment4
Assignment4
H K
 
Assignment4
Assignment4Assignment4
Assignment4
H K
 
Dm assignment3
Dm assignment3Dm assignment3
Dm assignment3H K
 
Proof
ProofProof
Proof
H K
 
Resolution
ResolutionResolution
Resolution
H K
 
Assignment description
Assignment descriptionAssignment description
Assignment description
H K
 
Dm assignment2
Dm assignment2Dm assignment2
Dm assignment2
H K
 
Set
SetSet
Set
H K
 
Dm assignment1
Dm assignment1Dm assignment1
Dm assignment1
H K
 
Logic
LogicLogic
LogicH K
 
Introduction
IntroductionIntroduction
Introduction
H K
 
Assignment 2 sol
Assignment 2 solAssignment 2 sol
Assignment 2 solH K
 
Assignment sw solution
Assignment sw solutionAssignment sw solution
Assignment sw solutionH K
 
Violinphoenix
ViolinphoenixViolinphoenix
ViolinphoenixH K
 

More from H K (20)

Assignment4
Assignment4Assignment4
Assignment4
 
Assignment3
Assignment3Assignment3
Assignment3
 
Induction
InductionInduction
Induction
 
Solution3
Solution3Solution3
Solution3
 
Solution2
Solution2Solution2
Solution2
 
Mid-
Mid-Mid-
Mid-
 
Assignment4
Assignment4Assignment4
Assignment4
 
Assignment4
Assignment4Assignment4
Assignment4
 
Dm assignment3
Dm assignment3Dm assignment3
Dm assignment3
 
Proof
ProofProof
Proof
 
Resolution
ResolutionResolution
Resolution
 
Assignment description
Assignment descriptionAssignment description
Assignment description
 
Dm assignment2
Dm assignment2Dm assignment2
Dm assignment2
 
Set
SetSet
Set
 
Dm assignment1
Dm assignment1Dm assignment1
Dm assignment1
 
Logic
LogicLogic
Logic
 
Introduction
IntroductionIntroduction
Introduction
 
Assignment 2 sol
Assignment 2 solAssignment 2 sol
Assignment 2 sol
 
Assignment sw solution
Assignment sw solutionAssignment sw solution
Assignment sw solution
 
Violinphoenix
ViolinphoenixViolinphoenix
Violinphoenix
 

Recently uploaded

Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Tamralipta Mahavidyalaya
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
kaushalkr1407
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
Nguyen Thanh Tu Collection
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
Peter Windle
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
RaedMohamed3
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
TechSoup
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 

Recently uploaded (20)

Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 

Html basics 7 table

  • 1. Lecture 8 In this lecture, we will learn about - How to create Table - Escape Sequences: Special Characters Tables are very useful while creating HTML pages; especially tables solve the alignment problem. A table tag has headings where you explain what the columns/rows include, rows for information, and cells for each item. In the following table, the first two rows contain the heading information, each detail row explains an HTML table tag, and each cell contains a paired tag or an explanation of the tag's function. Table Elements Element Description <TABLE> ... defines a table in HTML. If the BORDER attribute is present, your </TABLE> browser displays the table with a border. <CAPTION> ... </ defines the caption for the title of the table. The default position of the CAPTION> title is centered at the top of the table. The attribute ALIGN=BOTTOM can be used to position the caption below the table. NOTE: Any kind of markup tag can be used in the caption. <TR> ... </TR> specifies a table row within a table. You may define default attributes for the entire row: ALIGN (LEFT, CENTER, RIGHT) and/or VALIGN (TOP, MIDDLE, BOTTOM). <TH> ... </TH> defines a table header cell. By default the text in this cell is bold and centered. Table header cells may contain other attributes to determine the characteristics of the cell and/or its contents. <TD> ... </TD> defines a table data cell. By default the text in this cell is aligned left and centered vertically. Table data cells may contain other attributes to determine the characteristics of the cell and/or its contents. Here is the single cell table, the simplest table possible. <CENTER> <table border=1> <tr> <td>here is a single-celled table!</td> </tr> </table> </CENTER>
  • 2. The output on the browser is here is a single-celled table! <html> <head> <title> Using Table Tag</title> </head> <body> <table border=1> <caption> Time Table for Mar-June 2005</caption> <tr> <th></th> <th>Monday</th> <th>Tuesday</th> <th>Wednesday</th> <th>Thrusday</th> <th>Friday</th> </tr> <tr> <td>9:30-10:20</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td><font color="blue">109</font></td> </tr> <tr> <td>10:30-11:20</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td><font color="blue">109</font></td> </tr> <tr> <td>11:30-12:20</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td>
  • 3. <td><font color="blue">109</font></td> </tr> <tr> <td>12:30-1:20</td> <td>-</td> <td>-</td> <td><font color="blue">312</font></td> <td>-</td> <td>-</td> </tr> <tr> <td>1:30-2:20</td> <td>-</td> <td><font color="blue">306</font></td> <td>-</td> <td>-</td> <td>-</td> </tr> <tr> <td>2:30-3:20</td> <td>-</td> <td><font color="blue">306</font></td> <td>-</td> <td><font color="blue">309</font></td> <td>-</td> </tr> <tr> <td>3:30-4:20</td> <td>-</td> <td>-</td> <td>-</td> <td><font color="blue">309</font></td> <td>-</td> </tr> <tr> <td>4:30-5:20</td> <td>-</td> <td>-</td> <td>-</td> <td><font color="blue">309</font></td> <td>-</td>
  • 4. </tr> <table> </body> </html> Time Table for Mar-June 2005 Monday Tuesday Wednesday Thrusday Friday 9:30-10:20 - - - - 109 10:30-11:20 - - - - 109 11:30-12:20 - - - - 109 12:30-1:20 - - 312 - - 1:30-2:20 - 306 - - - 2:30-3:20 - 306 - 309 - 3:30-4:20 - - - 309 - 4:30-5:20 - - - 309 - Escape Sequences: Special Characters (a.k.a. Character Entities) Special characters are composed of short sequence of characters that are translated by the browser and displayed as a single character. Special characters begin with an ampersand(&) and end with a semicolon (;), for example &nbsp, which is used for giving spaces between words or characters To understand &nbsp; type the following code in notepad <html> <head> <title>Using nbsp </title> </head> <body> My name is Harshit Kumar. </body> </html> The output is My name is Harshit Kumar. Although I gave so many spaces between “Harhsit” and “Kumar”, still the output shows only one space.
  • 5. This means that browser shrink the spaces, so to insert spaces, we need &nbsp;. Type the following code in notepad <html> <head> <title>Using nbsp </title> </head> <body> My name is Harshit&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Kumar. </body> </html> The output is My name is Harshit Kumar. ------------------------------------------------------Finish----------------------------------------------