HTML Table Tag
HTML Table Tag
http://www.w3schools.com/tags/tag_table.asp
Like
88k
HTML Reference
HTML by Alphabet HTML by Function HTML Global Attributes HTML Events HTML Canvas HTML Audio/Video HTML Doctypes HTML Colornames HTML Colorpicker HTML Colormixer HTML Character Sets HTML ASCII HTML ISO-8859-1 HTML Symbols HTML URL Encode HTML Lang Codes HTTP Messages HTTP Methods Keyboard Shortcuts
WEB HOSTING
<tbody> Tag
Best Web Hosting eUK Web Hosting UK Reseller Hosting Domain, Hosting & Email Lowest Price Hosting
<table border="1"> <tr> <th>Month</th> <th>Savings</th> </tr> <tr> <td>January</td> <td>$100</td> </tr> </table>
Try it yourself (more examples at the bottom of this page)
WEB BUILDING
XML Editor - Free Trial! FREE Website BUILDER FREE Website Creator Best Website Templates
STATISTICS
Browser Statistics OS Statistics Display Statistics
Browser Support
HTML Tags
<!--> <!DOCTYPE> <a> <abbr> <acronym> <address> <applet> <area> <article> <aside> <audio> <b> <base> <basefont> <bdi> <bdo> <big> <blockquote> <body> <br> <button> <canvas> <caption> <center> <cite> <code> <col> <colgroup> <command> <datalist> <dd> <del> <details> <dfn> <dialog> <dir> <div> <dl> <dt> <em> <embed> <fieldset> <figcaption> <figure> <font> summary rules frame void above below hsides lhs rhs vsides box border none groups rows cols all text Not supported in HTML5. Specifies which parts of the outside borders that should be visible cellspacing pixels cellpadding pixels Not supported in HTML5. Specifies the space between the cell wall and the cell content Not supported in HTML5. Specifies the space between cells border bgcolor The <tr> element defines a table row, the <th> element defines a table header, and the <td> element defines a table cell. A more complex HTML table may also include <caption>, <col>, <colgroup>, <thead>, <tfoot>, and <tbody> elements. The <table> tag is supported in all major browsers.
Attributes
Attribute align Value left center right rgb(x,x,x) #xxxxxx colorname 1 "" Description Not supported in HTML5. Deprecated in HTML 4.01. Specifies the alignment of a table according to surrounding text
Not supported in HTML5. Deprecated in HTML 4.01. Specifies the background color for a table
Not supported in HTML5. Specifies which parts of the inside borders that should be visible
1 of 3
07-10-2013 22:55
http://www.w3schools.com/tags/tag_table.asp
<footer> <form> <frame> <frameset> <head> <header> <h1> - <h6> <hr> <html> <i> <iframe> <img> <input> <ins> <kbd> <keygen> <label> <legend> <li> <link> <map> <mark> <menu> <meta> <meter> <nav> <noframes> <noscript> <object> <ol> <optgroup> <option> <output> <p> <param> <pre> <progress> <q> <rp> <rt> <ruby> <s> <samp> <script> <section> <select> <small> <source> <span> <strike> <strong> <style> <sub> <summary> <sup> <table> <tbody> <td> <textarea> <tfoot> <th> <thead> <time> <title> <tr> <track> <tt> <u> <ul> <var> <video> <wbr>
width
pixels %
Global Attributes
The <table> tag also supports the Global Attributes in HTML.
Event Attributes
The <table> tag also supports the Event Attributes in HTML.
Related Pages
HTML tutorial: HTML Tables HTML DOM reference: Table object
HTML Reference
<tbody> Tag
Top 10 Tutorials
HTML Tutorial
Top 10 References
HTML/HTML5 Reference
Examples
HTML Examples
Quizzes
HTML Quiz
Color Picker
2 of 3
07-10-2013 22:55
http://www.w3schools.com/tags/tag_table.asp
HTML5 Tutorial CSS Tutorial CSS3 Tutorial JavaScript Tutorial jQuery Tutorial SQL Tutorial PHP Tutorial ASP.NET Tutorial XML Tutorial
CSS 1,2,3 Reference CSS 3 Browser Support JavaScript HTML DOM XML DOM PHP Reference jQuery Reference ASP.NET Reference HTML Colors
CSS Examples XML Examples JavaScript Examples HTML DOM Examples jQuery Examples XML DOM Examples AJAX Examples Razor Examples ASP Examples SVG Examples
HTML5 Quiz XHTML Quiz CSS Quiz JavaScript Quiz jQuery Quiz XML Quiz ASP Quiz PHP Quiz SQL Quiz
Statistics
Browser Statistics Browser OS Browser Display
REPORT ERROR
HOME
TOP
FORUM
ABOUT
ADVERTISE WITH US
W3Schools is optimized for learning, testing, and training. Examples might be simplified to improve reading and basic understanding. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. While using this site, you agree to have read and accepted our terms of use and privacy policy. Copyright 1999-2013 by Refsnes Data. All Rights Reserved.
3 of 3
07-10-2013 22:55