Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
2Activity
0 of .
Results for:
No results containing your search query
P. 1
Table coding in JavaScript with the help of HTML

Table coding in JavaScript with the help of HTML

Ratings: (0)|Views: 124 |Likes:
Published by Syed Arbab Ahmed
Table coding in JavaScript with the help of HTML.
Table coding in JavaScript with the help of HTML.

More info:

Published by: Syed Arbab Ahmed on Jun 30, 2009
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOCX, PDF, TXT or read online from Scribd
See more
See less

12/16/2011

pdf

text

original

 
Table coding in JavaScript with the help of HTML:
<HTML><HEAD><TITLE>Sample Table</TITLE><script type="text/javascript"> </script></HEAD><BODY><TABLE ID="table0" BORDER=1><TBODY><TR><TD ROWSPAN=2>NO</TD><TD COLSPAN=2>IDS</TD><TD ROWSPAN=2>Date</TD></TR><TR><TD>ID</TD><TD>Device ID</TD></TR><TR><TD COLSPAN=4> </TD></TR><TR><TD COLSPAN=3> </TD><TD> </TD></TR><TR><TD>1</TD><TD>k</TD><TD>00030</TD><TD>11/09/01 12:14:00 pm</TD></TR><TR><TD>2</TD><TD>c</TD><TD>00006</TD><TD>11/11/01 12:15:00 pm</TD></TR><TR><TD>3</TD><TD>a</TD><TD>00016</TD><TD>10/16/01 08:14:00 am</TD></TR><TR><TD>4</TD><TD>b</TD><TD>00031</TD><TD>09/05/01 10:05:00 am</TD></TR></TABLE><!-- Don't save it with js extension it is use with files when there is only javascript code e.g.:functions.Thats why use HTML extension.The <tr> tag defines a row in an HTML table.The <td>tag defines a standard cell in an HTML table.An HTML table has two kinds of cells:* Header cells - contains header information (created with the th element)
 
* Standard cells - contains data (created with the td element)The text in a th element is bold and centered.The text in a td element is regular and left-aligned.The text in a th element is bold and centered.The text in a td element is regular and left-aligned.Header cell in an HTML table.An HTML table has two kinds of cells:* Header cells - contains header information (created with the th element)* Standard cells - contains data (created with the td element)The text in a th element is bold and centeredThe text in a td element is regular and left-aligned. -->
Output of the above program
2nd table which is entirely in HTML:
 <!-- BookHTML 4.0 of 'William H. Murray & Chris H. Pappas'(www.phptr.com) --><html><head><title> Table pg. 154 </title></head>
 
<body><table border="15"><colgroup middle><!-- define a column group--><colgroup span="3" left><colgroup span="2" bgcolor="#00a000" right ><caption align="top"> Separating column with color </caption><tbody><tr><th><th colspan="3"> internal <th colspan="2"> external<tr><th><th> Col.1 Row 2 <th>1<th>2<th>3<th>4<th><tr><th>card<td>4b<td>5<td>6<td>7<td>8<tr><th>card2<td>9<td>10<td>11<td>12<td>13<tr><th>card3<td>14<td>15<td>16<td>17<td>18<tr><th>q<br> order <td>0<td>2<td>0<td>0<td>0</td></tr></tbody></table></body></html>
Output of the above program:
 

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->