HTML Table Example

The example below displays how to create a table using HTML and the <table> tag.

The example below consists of the following elements:
<table> This tag begins the table.

border = “1” This attribute defines the width of the border. If this attribute is not added to the table tag, no border will be displayed.
<tr> This tag begins a row in the table.

<td> This tag defines a column in the table, and stands for table data.

<th> This tag defines a table header. All text within this tag will be displayed in bold.

align = “right” This attribute is used below in the <td> tag to align the data displayed to the right of the column.

<table border=”1″>
<th>Student Count</th>
<td align=”right”>10</td>
<td align=”right”>11</td>
<td align=”right”>7</td>
<td align=”right”>3</td>
<td align=”right”>2</td>

The code above produces the following table:

Grade Student Count
A 10
B 11
C 7
D 3
F 2

Over 20 years programming experience 5 years Oracle SQL/Stored Procedure programming Over 10 years SQL 2000/2005/2008 Server SQL/Stored Procedure programming Over 18 years Visual Basic 3.0/4.0/5.0/6.0/.Net/2003/2005/2008/2010/2015 Over 10 years ASP.Net Over 7 years Visual C# Over 20 years Microsoft Office and VBA HTML JAVA COBOL EASYTRIEVE FORTRAN

Tagged with: , , , , , , , ,
Posted in HTML Examples
2 comments on “HTML Table Example
  1. scripts | shop scripts | web scripts | website tools | tutorials | design | themes | php | html | html5 | clone…

    […]HTML Table Example « Tech and Programming Tips[…]…

  2. Hello mates, good piece of writing and fastidious urging commented here, I am truly enjoying by these.

Leave a Reply to Display stands Cancel reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: