Tuesday, February 16, 2016

Working with Dynamic Webtables

In previous session we have seen how to handle web tables, in  this script we see how dynamically get the tr and td's i.e rows and columns and display the content on the console.

Go to this site : http://www.w3schools.com/tags/tag_table.asp
and display all the information


First need to find the no. of rows by tag
and the columns by tag
Then get the size and loop through to print all the values in each cell.


Script :


Output :
align
left
center
right
Not supported in HTML5.
Specifies the alignment of a table according to surrounding text

3
bgcolor
rgb(x,x,x)
#xxxxxx
colorname
Not supported in HTML5.
Specifies the background color for a table

3
border
1
0
Specifies whether or not the table is being used for layout purposes

3
cellpadding
pixels
Not supported in HTML5.
Specifies the space between the cell wall and the cell content

3
cellspacing
pixels
Not supported in HTML5.
Specifies the space between cells

3
frame
void
above
below
hsides
lhs
rhs
vsides
box
border
Not supported in HTML5.
Specifies which parts of the outside borders that should be visible

3
rules
none
groups
rows
cols
all
Not supported in HTML5.
Specifies which parts of the inside borders that should be visible

3
sortable
sortable
Specifies that the table should be sortable

3
summary
text
Not supported in HTML5.
Specifies a summary of the content of a table

3
width
pixels
%
Not supported in HTML5.
Specifies the width of a table