SlideShare a Scribd company logo
1 of 5
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

Frames tables forms
Frames tables formsFrames tables forms
Frames tables formsnobel mujuji
 
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 FileKandarp 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
 

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 (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
Assignment3H K
 
Induction
InductionInduction
InductionH K
 
Solution3
Solution3Solution3
Solution3H K
 
Solution2
Solution2Solution2
Solution2H K
 
Mid-
Mid-Mid-
Mid-H K
 
Assignment4
Assignment4Assignment4
Assignment4H K
 
Assignment4
Assignment4Assignment4
Assignment4H K
 
Dm assignment3
Dm assignment3Dm assignment3
Dm assignment3H K
 
Proof
ProofProof
ProofH K
 
Resolution
ResolutionResolution
ResolutionH K
 
Assignment description
Assignment descriptionAssignment description
Assignment descriptionH K
 
Dm assignment2
Dm assignment2Dm assignment2
Dm assignment2H K
 
Set
SetSet
SetH K
 
Dm assignment1
Dm assignment1Dm assignment1
Dm assignment1H K
 
Logic
LogicLogic
LogicH K
 
Introduction
IntroductionIntroduction
IntroductionH 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

How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...M56BOOKSTORE PRODUCT/SERVICE
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 

Recently uploaded (20)

TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 

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----------------------------------------------