Html <table> tag
HTML <table> tag example
• HTML table tag is used to display data in tabular form (row * column).
• The HTML table model allows authors to arrange data - text, preformatted text, images, links, form, form fields, other tables, etc. -- into rows and columns of cells.
The HTML tables are created using the <table> tag in which the <tr> tag is used to create table row and <td> tag is used to create data cells. The elements under <td> are regular and left aligned by default.
Html <table> tag example 1:
Output:
Html <table> tag example 2: Border
Output:
Html <table> tag example 3:
The Output which is shown below contains only html, External css been used for styling the table.
Table Output
Tag | Description |
---|---|
<a> |
Defines a hyperlink. |
<abbr> |
Defines an abbreviated form of a longer word or phrase. |
<acronym> |
Defines an acronym. |
<address> |
Specifies the author's contact information. |
<applet> |
Obsolete Embeds a Java applet (mini Java applications) on the page. Use the <object> element instead. |
<area> |
Defines a specific area within an image map. |
<article> |
Defines an article. |
<aside> |
Defines some content loosely related to the page content. |
<audio> |
Embeds a sound, or an audio stream in an HTML document. |
<b> |
Displays text in a bold style. |
<base> |
Defines the base URL for all linked objects on a page. |
<basefont> |
Obsolete Specifies the base font for a page. |
<bdi> |
Represents text that is isolated from its surrounding for the purposes of bidirectional text formatting. |
<bdo> |
Overrides the current text direction. |
<big> |
Obsolete Displays text in a large size. |
<blockquote> |
Defines a long quotation. |
<body> |
Defines the document's body. |
<br> |
Produces a single line break. |