HOW TO MAKE TABLE IN HTML PAGE?
Hello friends, today we gain knowledge about making tables in HTML .Tables are widely use in internet , in websites to make students report card,to make government officer data etc.
An HTML table is a rectangular grid of rows and columns on a Web page, into which you can enter all kinds of information , including text , number , links and even images. A table is a rectangular arrangement of rows and columns on your screen.
ROW: A single line of data that runs across the table.
COLUMN: A single vertical section of data.
CELL: The intersection of a row and column forms a cell. The cell are where you enter the data that appear in the table .
CAPTION: This is the text that appear above the table and is used to describe the content of the table.
HEADER:The first row of the table . The header are optional.
BORDER:These are the lines that surround the table and each cell.
Each table cell is self contained . You can edit and format the content of a cell without disturbing the arrangement of the other table elements. The text ' warp' inside each cell , making it a snap to create multiple line entries . Tables can include not only the text , but image and links as well.Most text tags ( such as <B>,<I>,<H1>,etc.) can be used inside a table ,so you can format the table to suit your needs.
CREATING A ONE -ROW TABLE
A Table always begins with the following basic container:
<Table> </Table>
All the other tags are written between these tow tags :There are two things that you need to know about the <TABLE>ta:
If you want your table to show a border,use the <TABLE BORDER>tag instead of <TABLE>.If you don`t want a border,just use <TABLE>.
Adding a row: To add a row ,use <TR>(tablerow)tag and a</TR>tag between <TABLE>and </TABLE> tags.For
example:
<TABLE BORDER><TR></TR></TABLE BORDER>
Now you can create columns by placing the <TD>(table data)and </TD>tags between <TR>and</TR>. Each <TD></TD> combination represents one column (or an individual cell in the row),so if you want a three-column table,you should type as follows:
<TABLE BORDER>
<TR>
<TD></TD><TD></TD><TD></TD></TR></TABLE>
you can put any of the following within the <TD>and</TD>tags:
- TEXT
- HTML text-formatting tags (such as <B>and<I>)
- Links
- Lists
- Images.
BELOW I GIVE YOU SOME TABLE MAKING WITH HELP OF HTML:
FIRSTLY WRITE THE FOLLOWING CODE IN NOTEPAD.
SAVE THE HTML FILE ("FILE NAME".HTML)
GO TO START MENU AND SEARCH THE NAME OF THE FILE AND THEN DOUBLE CLICK ON THAT FILE TO SEE THE RESULT.
HOW TO MAKE TABLE IN HTML PAGE?
Reviewed by Unknown
on
08:56
Rating:
No comments: