Allows you to create a table from HTML input.
Example
Running this code will create a table report named "&table" for the HTML code saved in variable "#d" with the HTML XPath/Index "//table[@class='reference']".
set(#d,"
<!DOCTYPE html>
<html lang=\"en-US\">
<head>
<title>HTML Tables</title>
<style>a.menu_html_tables\{font-weight:bold;\} a.topnav_html\{background-color:#8AC007 !important;color:#ffffff !important;\}</style>
<style>
#smallnavContainer \{display:none;\}
</style>
<meta charset=\"utf-8\">
<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">
<meta name=\"Keywords\" content=\"HTML,CSS,XML,JavaScript,DOM,jQuery,ASP.NET,PHP,SQL,colors,tutorial,programming,development,training,learning,quiz,primer,lessons,reference,examples,source code,demos,tips,color table,w3c,cascading style sheets,active server pages,Web building,Webmaster\">
<meta name=\"Description\" content=\"Free HTML CSS JavaScript DOM jQuery XML AJAX Angular ASP .NET PHP SQL tutorials, references, web building examples\">
<link rel=\"icon\" href=\"/favicon.ico\" type=\"image/x-icon\">
<link rel=\"stylesheet\" href=\"/bs/css/bootstrap_w3schools.css\">
<script src=\"/jquery.js\"></script>
<script src=\"/bs/js/bootstrap.min.js\"></script>
<script>
(function(i,s,o,g,r,a,m)\{i[\'GoogleAnalyticsObject\']=r;i[r]=i[r]||function()\{
(i[r].q=i[r].q||[]).push(arguments)\},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
\})(window,document,\'script\',\'//www.google-analytics.com/analytics.js\',\'ga\');
ga(\'create\', \'UA-3855518-1\', \'auto\');
ga(\'require\', \'displayfeatures\');
ga(\'send\', \'pageview\');
</script>
<script type=\'text/javascript\'>
var googletag = googletag || \{\};
googletag.cmd = googletag.cmd || [];
(function() \{
var gads = document.createElement(\'script\');
gads.async = true;
gads.type = \'text/javascript\';
var useSSL = \'https:\' == document.location.protocol;
gads.src = (useSSL ? \'https:\' : \'http:\') +
\'//www.googletagservices.com/tag/js/gpt.js\';
var node = document.getElementsByTagName(\'script\')[0];
node.parentNode.insertBefore(gads, node);
\})();
</script>
<script type=\'text/javascript\'>
// GPT slots
var gptAdSlots = [];
googletag.cmd.push(function() \{
var leaderMapping = googletag.sizeMapping().
// Mobile ad
addSize([0, 0], [320, 50]).
// Vertical Tablet ad
addSize([480, 0], [468, 60]).
// Horizontal Tablet
addSize([700, 0], [728, 90]).
// Desktop and bigger ad
// addSize([1200, 0], [[728, 90], [970, 90]]).build();
addSize([1200, 0], [728, 90]).build();
// gptAdSlots[0] = googletag.defineSlot(\'/16833175/MainLeaderboard\', [[728, 90], [970, 90]], \'div-gpt-ad-1422003450156-2\').
gptAdSlots[0] = googletag.defineSlot(\'/16833175/MainLeaderboard\', [728, 90], \'div-gpt-ad-1422003450156-2\').
defineSizeMapping(leaderMapping).addService(googletag.pubads());
var skyMapping = googletag.sizeMapping().
// Mobile ad
addSize([0, 0], [320, 50]).
// Tablet ad
addSize([975, 0], [120, 600]).
// Desktop
// addSize([1100, 0], [[120, 600], [160, 600]]).
addSize([1100, 0], [160, 600]).
// Large Desktop
// addSize([1675, 0], [[120, 600], [160, 600], [300, 600], [300, 1050]]).build();
addSize([1675, 0], [[160, 600], [300, 600]]).build();
// gptAdSlots[1] = googletag.defineSlot(\'/16833175/WideSkyScraper\', [[120, 600], [160, 600], [300, 600], [300, 1050]], \'div-gpt-ad-1422003450156-5\').
gptAdSlots[1] = googletag.defineSlot(\'/16833175/WideSkyScraper\', [[160, 600], [300, 600]], \'div-gpt-ad-1422003450156-5\').
defineSizeMapping(skyMapping).addService(googletag.pubads());
var bmrMapping = googletag.sizeMapping().
// Smaller
// addSize([0, 0], [[300, 250], [336, 280]]).
addSize([0, 0], [300, 250]).
// Large Desktop
// addSize([1200, 0], [[300, 250], [336, 280], [728, 280], [970, 250]]).build();
addSize([1200, 0], [[300, 250], [728, 280]]).build();
// gptAdSlots[2] = googletag.defineSlot(\'/16833175/BottomMediumRectangle\', [[300, 250], [336, 280], [728, 280], [970, 250]], \'div-gpt-ad-1422003450156-0\').
gptAdSlots[2] = googletag.defineSlot(\'/16833175/BottomMediumRectangle\', [[300, 250], [728, 280]], \'div-gpt-ad-1422003450156-0\').
defineSizeMapping(bmrMapping).setCollapseEmptyDiv(true).addService(googletag.pubads());
// gptAdSlots[3] = googletag.defineSlot(\'/16833175/RightBottomMediumRectangle\', [[300, 250], [336, 280]], \'div-gpt-ad-1422003450156-3\').addService(googletag.pubads());
gptAdSlots[3] = googletag.defineSlot(\'/16833175/RightBottomMediumRectangle\', [300, 250], \'div-gpt-ad-1422003450156-3\').addService(googletag.pubads());
googletag.pubads().setTargeting(\"content\",\"html\");
googletag.enableServices();
\});
</script>
<script>
if (window.addEventListener) \{
window.addEventListener(\"resize\", browserResize);
\} else if (window.attachEvent) \{
window.attachEvent(\"onresize\", browserResize);
\}
var xbeforeResize = window.innerWidth;
var ybeforeResize = window.innerWidth;
var zbeforeResize = window.innerWidth;
function skyscraperResize() \{
if (window.innerWidth < 975 + 17) \{
document.getElementById(\"div-gpt-ad-1422003450156-5\").style.minHeight=\"0\";
\}
\}
function browserResize() \{
var afterResize = window.innerWidth;
if ((xbeforeResize < (1200 + 14) && afterResize >= (1200 + 14)) || (xbeforeResize >= (1200 + 14) && afterResize < (1200 + 14)) ||
(xbeforeResize < (700 + 14) && afterResize >= (700 + 14)) || (xbeforeResize >= (700 + 14) && afterResize < (700 + 14)) ||
(xbeforeResize < (480 + 17) && afterResize >= (480 + 17)) ||(xbeforeResize >= (480 + 17) && afterResize < (480 + 17))) \{
xbeforeResize = afterResize;
googletag.cmd.push(function() \{
googletag.pubads().refresh([gptAdSlots[0]]);
\});
\}
if ((ybeforeResize < (1675 + 14) && afterResize >= (1675 + 14)) || (ybeforeResize >= (1675 + 14) && afterResize < (1675 + 14)) ||
(ybeforeResize < (1100 + 14) && afterResize >= (1100 + 14)) || (ybeforeResize >= (1100 + 14) && afterResize < (1100 + 14)) ||
(ybeforeResize < (975 + 17) && afterResize >= (975 + 17)) || (ybeforeResize >= (975 + 17) && afterResize < (975 + 17))) \{
ybeforeResize = afterResize;
skyscraperResize()
googletag.cmd.push(function() \{
googletag.pubads().refresh([gptAdSlots[1]]);
\});
\}
if ((zbeforeResize < (1200 + 14) && afterResize >= (1200 + 14)) || (zbeforeResize >= (1200 + 14) && afterResize < (1200 + 14))) \{
zbeforeResize = afterResize;
googletag.cmd.push(function() \{
googletag.pubads().refresh([gptAdSlots[2], gptAdSlots[3]]);
\});
\}
\}
</script>
<link rel=\"stylesheet\" type=\"text/css\" href=\"/stdtheme.css\">
<style>
.htmltut_table, .htmltut_table th, .htmltut_table td
\{
border:1px solid black;
\}
.htmltut_table1, .htmltut_table1 th, .htmltut_table1 td
\{
border:1px solid black;
\}
.htmltut_table1 th, .htmltut_table1 td
\{
padding:5px;
\}
</style>
</head>
<body>
<div id=\'leftBackground\'></div><div id=\'topDIV\' class=\'top\'><a href=\'http://www.w3schools.com\'><img id=\'topLogo\' src=\'/images/w3schools.png\' alt=\'W3Schools.com\' class=\'img-responsive\'></a><div id=\'toptext\'>THE WORLD\'S LARGEST WEB DEVELOPER SITE</div></div><div id=\'topnavDIV\' class=\'topnavContainer\'><div class=\'container-fluid\' style=\'max-width:1600px;margin-left:0px;padding-left:0;\'><ul class=\'nav nav-pills topnav\'><li><a href=\'/default.asp\' class=\'topnav_home\' title=\'Home\'> </a></li><li><a href=\'/html/default.asp\' class=\'topnav_html\' title=\'HTML Tutorial\'>HTML</a></li><li><a href=\'/css/default.asp\' class=\'topnav_css\' title=\'CSS Tutorial\'>CSS</a></li><li><a href=\'/js/default.asp\' class=\'topnav_js\' title=\'JavaScript Tutorial\'>JAVASCRIPT</a></li><li><a href=\'/sql/default.asp\' class=\'topnav_sql\' title=\'SQL Tutorial\'>SQL</a></li><li><a href=\'/php/default.asp\' class=\'topnav_php\' title=\'PHP Tutorial\'>PHP</a></li><li><a href=\'/jquery/default.asp\' class=\'topnav_jquery\' title=\'jQuery Tutorial\'>jQUERY</a></li><li><a href=\'/bootstrap/default.asp\' class=\'topnav_bootstrap\' title=\'Bootstrap Tutorial\'>BOOTSTRAP</a></li><li><a href=\'/angular/default.asp\' class=\'topnav_angular\' title=\'Angular Tutorial\'>ANGULAR</a></li><li><a href=\'/xml/default.asp\' class=\'topnav_xml\' title=\'XML Tutorial\'>XML</a></li><li><a id=\'dropdownTutorialsBtn\' href=\'#\' class=\'topnav_tutorials\' title=\'More Tutorials\'>TUTORIALS <span class=\'caret\'></span></a></li><li><a id=\'dropdownReferencesBtn\' href=\'#\' class=\'topnav_references\' title=\'More References\'>REFERENCES <span class=\'caret\'></span></a></li><li><a id=\'dropdownExamplesBtn\' href=\'#\' class=\'topnav_examples\' title=\'More Examples\'>EXAMPLES <span class=\'caret\'></span></a></li><li><a href=\'/forum/default.asp\' class=\'topnav_forum\' title=\'W3Schools Forum\'>FORUM</a></li><li class=\'menuBtn\'><a href=\'javascript:void(0)\' class=\'topnav_menu\' onclick=\'vismenyen()\' title=\'Menu\'><hr><hr><hr></a></li><li class=\'menuSearch\'><a id=\'dropdownSearchBtn\' href=\'javascript:void(0);\' class=\'topnav_search\' title=\'Search W3Schools\'> </a></li><li class=\'menuTranslate\'><a id=\'dropdownTranslateBtn\' href=\'javascript:void(0);\' class=\'topnav_translate\' title=\'Translate W3Schools\'> </a></li></ul></div></div><div class=\'container-fluid master\'><div class=\'row\'><div class=\'col-lg-2 col-md-2 col-sm-3 menu\'><div id=\'menyen\'><h2 class=\"left\"><span class=\"left_h2\">HTML</span> Tutorial</h2>
<a target=\"_top\" href=\"default.asp\" class=\"menu_default\">HTML HOME</a>
<a target=\"_top\" href=\"html_intro.asp\" class=\"menu_html_intro\">HTML Introduction</a>
<a target=\"_top\" href=\"html_editors.asp\" class=\"menu_html_editors\">HTML Editors</a>
<a target=\"_top\" href=\"html_basic.asp\" class=\"menu_html_basic\">HTML Basic</a>
<a target=\"_top\" href=\"html_elements.asp\" class=\"menu_html_elements\">HTML Elements</a>
<a target=\"_top\" href=\"html_attributes.asp\" class=\"menu_html_attributes\">HTML Attributes</a>
<a target=\"_top\" href=\"html_headings.asp\" class=\"menu_html_headings\">HTML Headings</a>
<a target=\"_top\" href=\"html_paragraphs.asp\" class=\"menu_html_paragraphs\">HTML Paragraphs</a>
<a target=\"_top\" href=\"html_styles.asp\" class=\"menu_html_styles\">HTML Styles</a>
<a target=\"_top\" href=\"html_formatting.asp\" class=\"menu_html_formatting\">HTML Formatting</a>
<a target=\"_top\" href=\"html_quotation_elements.asp\" class=\"menu_html_quotation_elements\">HTML Quotations</a>
<a target=\"_top\" href=\"html_computercode_elements.asp\" class=\"menu_html_computercode_elements\">HTML Computercode</a>
<a target=\"_top\" href=\"html_comments.asp\" class=\"menu_html_comments\">HTML Comments</a>
<a target=\"_top\" href=\"html_css.asp\" class=\"menu_html_css\">HTML CSS</a>
<a target=\"_top\" href=\"html_links.asp\" class=\"menu_html_links\">HTML Links</a>
<a target=\"_top\" href=\"html_images.asp\" class=\"menu_html_images\">HTML Images</a>
<a target=\"_top\" href=\"html_tables.asp\" class=\"menu_html_tables\">HTML Tables</a>
<a target=\"_top\" href=\"html_lists.asp\" class=\"menu_html_lists\">HTML Lists</a>
<a target=\"_top\" href=\"html_blocks.asp\" class=\"menu_html_blocks\">HTML Blocks</a>
<a target=\"_top\" href=\"html_classes.asp\" class=\"menu_html_classes\">HTML Classes</a>
<a target=\"_top\" href=\"html_layout.asp\" class=\"menu_html_layout\">HTML Layout</a>
<a target=\"_top\" href=\"html_responsive.asp\" class=\"menu_html_responsive\">HTML Responsive</a>
<a target=\"_top\" href=\"html_iframe.asp\" class=\"menu_html_iframe\">HTML Iframes</a>
<a target=\"_top\" href=\"html_colornames.asp\" class=\"menu_html_colornames\">HTML Color Names</a>
<a target=\"_top\" href=\"html_colorvalues.asp\" class=\"menu_html_colorvalues\">HTML Color Values</a>
<a target=\"_top\" href=\"html_colors.asp\" class=\"menu_html_colors\">HTML Color Shades</a>
<a target=\"_top\" href=\"html_scripts.asp\" class=\"menu_html_scripts\">HTML JavaScript</a>
<a target=\"_top\" href=\"html_head.asp\" class=\"menu_html_head\">HTML Head</a>
<a target=\"_top\" href=\"html_entities.asp\" class=\"menu_html_entities\">HTML Entities</a>
<a target=\"_top\" href=\"html_symbols.asp\" class=\"menu_html_symbols\">HTML Symbols</a>
<a target=\"_top\" href=\"html_charset.asp\" class=\"menu_html_charset\">HTML Charset</a>
<a target=\"_top\" href=\"html_urlencode.asp\" class=\"menu_html_urlencode\">HTML URL Encode</a>
<a target=\"_top\" href=\"html_xhtml.asp\" class=\"menu_html_xhtml\">HTML XHTML</a>
<br>
<h2 class=\"left\"><span class=\"left_h2\">HTML</span> Forms</h2>
<a target=\"_top\" href=\"html_forms.asp\" class=\"menu_html_forms\">HTML Forms</a>
<a target=\"_top\" href=\"html_form_elements.asp\" class=\"menu_html_form_elements\">HTML Form Elements</a>
<a target=\"_top\" href=\"html_form_input_types.asp\" class=\"menu_html_form_input_types\">HTML Input Types</a>
<a target=\"_top\" href=\"html_form_attributes.asp\" class=\"menu_html_form_attributes\">HTML Input Attributes</a>
<br>
<h2 class=\"left\"><span class=\"left_h2\">HTML5</span></h2>
<a target=\"_top\" href=\"html5_intro.asp\" class=\"menu_html5_intro\">HTML5 Intro</a>
<a target=\"_top\" href=\"html5_browsers.asp\" class=\"menu_html5_browsers\">HTML5 Support</a>
<a target=\"_top\" href=\"html5_new_elements.asp\" class=\"menu_html5_new_elements\">HTML5 Elements</a>
<a target=\"_top\" href=\"html5_semantic_elements.asp\" class=\"menu_html5_semantic_elements\">HTML5 Semantics</a>
<a target=\"_top\" href=\"html5_migration.asp\" class=\"menu_html5_migration\">HTML5 Migration</a>
<a target=\"_top\" href=\"html5_syntax.asp\" class=\"menu_html5_syntax\">HTML5 Style Guide</a>
<br>
<h2 class=\"left\"><span class=\"left_h2\">HTML</span> Graphics</h2>
<a target=\"_top\" href=\"html5_canvas.asp\" class=\"menu_html5_canvas\">HTML Canvas</a>
<a target=\"_top\" href=\"html5_svg.asp\" class=\"menu_html5_svg\">HTML SVG</a>
<br>
<h2 class=\"left\"><span class=\"left_h2\">HTML</span> Media</h2>
<a target=\"_top\" href=\"html_media.asp\" class=\"menu_html_media\">HTML Media</a>
<a target=\"_top\" href=\"html5_video.asp\" class=\"menu_html5_video\">HTML Video</a>
<a target=\"_top\" href=\"html5_audio.asp\" class=\"menu_html5_audio\">HTML Audio</a>
<a target=\"_top\" href=\"html_object.asp\" class=\"menu_html_object\">HTML Plug-ins</a>
<a target=\"_top\" href=\"html_youtube.asp\" class=\"menu_html_youtube\">HTML YouTube</a>
<br>
<h2 class=\"left\"><span class=\"left_h2\">HTML</span> APIs</h2>
<a target=\"_top\" href=\"html5_geolocation.asp\" class=\"menu_html5_geolocation\">HTML Geolocation</a>
<a target=\"_top\" href=\"html5_draganddrop.asp\" class=\"menu_html5_draganddrop\">HTML Drag/Drop</a>
<a target=\"_top\" href=\"html5_webstorage.asp\" class=\"menu_html5_webstorage\">HTML Local Storage</a>
<a target=\"_top\" href=\"html5_app_cache.asp\" class=\"menu_html5_app_cache\">HTML App Cache</a>
<a target=\"_top\" href=\"html5_webworkers.asp\" class=\"menu_html5_webworkers\">HTML Web Workers</a>
<a target=\"_top\" href=\"html5_serversentevents.asp\" class=\"menu_html5_serversentevents\">HTML SSE</a>
<br>
<h2 class=\"left\"><span class=\"left_h2\">HTML</span> Examples</h2>
<a target=\"_top\" href=\"html_examples.asp\" class=\"menu_html_examples\">HTML Examples</a>
<a target=\"_top\" href=\"html_quiz.asp\" class=\"menu_html_quiz\">HTML Quiz</a>
<a target=\"_top\" href=\"html5_quiz.asp\" class=\"menu_html5_quiz\">HTML5 Quiz</a>
<a target=\"_top\" href=\"html_exam.asp\" class=\"menu_html_exam\">HTML Certificate</a>
<a target=\"_top\" href=\"html5_exam.asp\" class=\"menu_html5_exam\">HTML5 Certificate</a>
<a target=\"_top\" href=\"html_summary.asp\" class=\"menu_html_summary\">HTML Summary</a>
<br>
<h2 class=\"left\"><span class=\"left_h2\">HTML</span> References</h2>
<a target=\"_top\" href=\"/tags/default.asp\">HTML Tag List</a>
<a target=\"_top\" href=\"/tags/ref_standardattributes.asp\">HTML Attributes</a>
<a target=\"_top\" href=\"/tags/ref_eventattributes.asp\">HTML Events</a>
<a target=\"_top\" href=\"/tags/ref_canvas.asp\">HTML Canvas</a>
<a target=\"_top\" href=\"/tags/ref_av_dom.asp\">HTML Audio/Video</a>
<a target=\"_top\" href=\"/tags/ref_html_dtd.asp\">HTML Doctypes</a>
<a target=\"_top\" href=\"/tags/ref_colornames.asp\">HTML Colornames</a>
<a target=\"_top\" href=\"/tags/ref_colorgroups.asp\">HTML Colorgroups</a>
<a target=\"_top\" href=\"/tags/ref_colorpicker.asp\">HTML Colorpicker</a>
<a target=\"_top\" href=\"/tags/ref_colormixer.asp\">HTML Colormixer</a>
<a target=\"_top\" href=\"/charsets/default.asp\">HTML Character Sets</a>
<a target=\"_top\" href=\"/tags/ref_urlencode.asp\">HTML URL Encode</a>
<a target=\"_top\" href=\"/tags/ref_language_codes.asp\">HTML Lang Codes</a>
<a target=\"_top\" href=\"/tags/ref_httpmessages.asp\">HTTP Messages</a>
<a target=\"_top\" href=\"/tags/ref_httpmethods.asp\">HTTP Methods</a>
<a target=\"_top\" href=\"/tags/ref_pxtoemconversion.asp\">PX to EM Converter</a>
<a target=\"_top\" href=\"/tags/ref_keyboardshortcuts.asp\">Keyboard Shortcuts</a></div></div><div class=\'col-lg-10 col-md-10 col-sm-9 leaderboard\'><div id=\'mainLeaderboard\' style=\'overflow:hidden;\'><!-- MainLeaderboard--><div id=\'div-gpt-ad-1422003450156-2\'><script type=\'text/javascript\'>googletag.cmd.push(function() \{ googletag.display(\'div-gpt-ad-1422003450156-2\'); \});</script></div></div><div class=\'row\'><div class=\'col-lg-10 col-md-10 col-sm-12 main\'><div>
<h1>HTML <span class=\"color_h1\">Tables</span></h1>
<div class=\"chapter\">
<div class=\"prev\"><a class=\"chapter\" href=\"html_images.asp\">« Previous</a></div>
<div class=\"next\"><a class=\"chapter\" href=\"html_lists.asp\">Next Chapter »</a></div>
</div>
<hr>
<h2>HTML Table Example</h2>
<table class=\"reference\" style=\"width:100%\">
<tr>
<th>Number</th>
<th>First Name</th>
<th>Last Name</th>
<th>Points</th>
</tr>
<tr>
<td>1</td>
<td>Eve</td>
<td>Jackson</td>
<td>94</td>
</tr>
<tr>
<td>2</td>
<td>John</td>
<td>Doe</td>
<td>80</td>
</tr>
<tr>
<td>3</td>
<td>Adam</td>
<td>Johnson</td>
<td>67</td>
</tr>
<tr>
<td>4</td>
<td>Jill</td>
<td>Smith</td>
<td>50</td>
</tr>
</table>
<hr>
<h2>Defining HTML Tables</h2>
<div class=\"example\">
<h2 class=\"example\">Example</h2>
<div class=\"example_code notranslate htmlHigh\">
<table style="width:100%"><br>
<tr><br> <td>Jill</td><br>
<td>Smith</td> <br> <td>50</td><br>
</tr><br> <tr><br> <td>Eve</td><br>
<td>Jackson</td> <br> <td>94</td><br>
</tr><br></table>
</div>
<br><a target=\"_blank\" href=\"tryit.asp?filename=tryhtml_table\" class=\"tryitbtn\">Try it Yourself »</a>
</div>
<p>Example explained:</p>
<p>Tables are defined with the <strong><table></strong> tag.</p>
<p>Tables are divided into <strong>table rows</strong> with the <strong><tr></strong> tag.</p>
<p>Table rows are divided into <strong>table data</strong>
with the <strong><td></strong> tag.</p>
<p>A table row can also be divided into <strong>table headings</strong>
with the <strong><th></strong> tag.</p>
<table class=\"lamp\"><tr>
<th style=\"width:34px\"><img src=\"/images/lamp.jpg\" alt=\"Note\" style=\"height:32px;width:32px\"></th>
<td>Table data <td> are the data containers of the table.<br>They can contain
all sorts of HTML elements like text, images, lists, other tables, etc.</td>
</tr></table>
<hr>
<h2>An HTML Table with a Border Attribute</h2>
<p>If you do not specify a border for the table, it will be displayed without borders.</p>
<p>A border can be added using the border attribute:</p>
<div class=\"example\">
<h2 class=\"example\">Example</h2>
<div class=\"example_code notranslate htmlHigh\">
<table border="1" style="width:100%"><br>
<tr><br> <td>Jill</td><br>
<td>Smith</td> <br> <td>50</td><br>
</tr><br> <tr><br> <td>Eve</td><br>
<td>Jackson</td> <br>
<td>94</td><br> </tr><br></table>
</div>
<br><a class=\"tryitbtn\" href=\"tryit.asp?filename=tryhtml_table_border_attribute\" target=\"_blank\">Try it Yourself »</a>
</div>
<table class=\"lamp\"><tr>
<th style=\"width:34px\"><img src=\"/images/lamp.jpg\" alt=\"Note\" style=\"height:32px;width:32px\"></th>
<td>The border attribute is on its way out of the HTML standard!
It is better to use CSS.</td></tr>
</table>
<p>To add borders, use the <strong>CSS border</strong> property:</p>
<div class=\"example\">
<h2 class=\"example\">Example</h2>
<div class=\"example_code notranslate cssHigh\">
table, th, td
\{<br>
border: 1px solid black;<br>
\}</div>
<br><a class=\"tryitbtn\" href=\"tryit.asp?filename=tryhtml_table_border\" target=\"_blank\">Try it Yourself »</a>
</div>
<p>Remember to define borders for both the table and the table cells.</p>
<hr>
<h2>An HTML Table with Collapsed Borders</h2>
<p>If you want the borders to collapse into one border, add <strong>CSS border-collapse</strong>:</p>
<div class=\"example\">
<h2 class=\"example\">Example</h2>
<div class=\"example_code notranslate cssHigh\">
table, th, td \{<br> border: 1px solid black;<br>
border-collapse: collapse;<br>\}</div>
<br><a class=\"tryitbtn\" href=\"tryit.asp?filename=tryhtml_table_collapse\" target=\"_blank\">Try it Yourself »</a>
</div>
<hr>
<h2>An HTML Table with Cell Padding</h2>
<p>Cell padding specifies the space between the cell content and its borders.</p>
<p>If you do not specify a padding, the table cells will be displayed without padding.</p>
<p>To set the padding, use the <strong>CSS padding</strong> property:</p>
<div class=\"example\">
<h2 class=\"example\">Example</h2>
<div class=\"example_code notranslate cssHigh\">
table, th, td \{<br> border: 1px solid black;<br>
border-collapse: collapse;<br>\}<br>th, td \{<br> padding: 15px;<br>\}</div>
<br><a class=\"tryitbtn\" href=\"tryit.asp?filename=tryhtml_table_cellpadding\" target=\"_blank\">Try it Yourself »</a>
</div>
<hr>
<h2>HTML Table Headings</h2>
<p>Table headings are defined with the <strong><th></strong> tag.</p>
<p>By default, all major browsers display table headings as bold and centered:</p>
<div class=\"example\">
<h2 class=\"example\">Example</h2>
<div class=\"example_code notranslate htmlHigh\">
<table style="width:100%"><br>
<tr><br> <th>Firstname</th><br>
<th>Lastname</th> <br> <th>Points</th><br>
</tr><br> <tr><br> <td>Eve</td><br>
<td>Jackson</td> <br> <td>94</td><br>
</tr><br></table>
</div>
<br><a class=\"tryitbtn\" href=\"tryit.asp?filename=tryhtml_table_headings\" target=\"_blank\">Try it Yourself »</a>
</div>
<p>To left-align the table headings, use the <strong>CSS text-align</strong> property:</p>
<div class=\"example\">
<h2 class=\"example\">Example</h2>
<div class=\"example_code notranslate cssHigh\">
th \{<br> text-align: left;<br>\}
</div>
<br><a class=\"tryitbtn\" href=\"tryit.asp?filename=tryhtml_table_headings_left\" target=\"_blank\">Try it Yourself »</a>
</div>
<hr>
<h2>An HTML Table with Border Spacing</h2>
<p>Border spacing specifies the space between the cells.</p>
<p>To set the border spacing for a table, use the <strong>CSS border-spacing</strong> property:</p>
<div class=\"example\">
<h2 class=\"example\">Example</h2>
<div class=\"example_code notranslate cssHigh\">
table \{<br> border-spacing: 5px;<br>\}</div>
<br><a class=\"tryitbtn\" href=\"tryit.asp?filename=tryhtml_table_cellspacing\" target=\"_blank\">Try it Yourself »</a>
</div>
<table class=\"lamp\"><tr>
<th style=\"width:34px\"><img src=\"/images/lamp.jpg\" alt=\"Note\" style=\"height:32px;width:32px\"></th>
<td>If the table has collapsed borders, border-spacing has no effect.</td></tr>
</table>
<hr>
<h2>Table Cells that Span Many Columns</h2>
<p>To make a cell span more than one column, use the <strong>colspan</strong> attribute:</p>
<div class=\"example\">
<h2 class=\"example\">Example</h2>
<div class=\"example_code notranslate htmlHigh\">
<table style="width:100%"><br> <tr><br>
<th>Name</th><br>
<th colspan="2">Telephone</th><br> </tr><br>
<tr><br>
<td>Bill Gates</td><br> <td>555 77 854</td><br>
<td>555 77 855</td><br> </tr><br></table></div>
<br><a class=\"tryitbtn\" href=\"tryit.asp?filename=tryhtml_table_colspan\" target=\"_blank\">Try it Yourself »</a>
</div>
<hr>
<h2>Table Cells that Span Many Rows</h2>
<p>To make a cell span more than one row, use the <strong>rowspan</strong> attribute:</p>
<div class=\"example\">
<h2 class=\"example\">Example</h2>
<div class=\"example_code notranslate htmlHigh\">
<table style="width:100%"><br> <tr><br> <th>Name:</th><br> <td>Bill Gates</td><br> </tr><br>
<tr><br> <th rowspan="2">Telephone:</th><br>
<td>555 77 854</td><br> </tr><br> <tr><br>
<td>555 77 855</td><br> </tr><br></table></div>
<br><a class=\"tryitbtn\" href=\"tryit.asp?filename=tryhtml_table_rowspan\" target=\"_blank\">Try it Yourself »</a>
</div>
<hr>
<h2>An HTML Table With a Caption</h2>
<p>To add a caption to a table, use the <strong><caption></strong> tag:</p>
<div class=\"example\">
<h2 class=\"example\">Example</h2>
<div class=\"example_code notranslate htmlHigh\">
<table style="width:100%"><br> <caption>Monthly savings</caption><br>
<tr><br> <th>Month</th><br> <th>Savings</th><br>
</tr><br> <tr><br> <td>January</td><br>
<td>$100</td><br> </tr><br> <tr><br>
<td>February</td><br> <td>$50</td><br> </tr><br>
</table></div>
<br><a class=\"tryitbtn\" href=\"tryit.asp?filename=tryhtml_tables2\" target=\"_blank\">Try it Yourself »</a>
</div>
<table class=\"lamp\"><tr>
<th style=\"width:34px\">
<img src=\"/images/lamp.jpg\" alt=\"Note\" style=\"height:32px;width:32px\"></th>
<td>
The <caption> tag must be inserted immediately after the <table> tag.
</td>
</tr></table>
<hr>
<h2>A Special Style for One Table</h2>
<p>To define a special style for a special table, add an <strong>id attribute</strong> to the table:</p>
<div class=\"example\">
<h2 class=\"example\">Example</h2>
<div class=\"example_code notranslate htmlHigh\">
<table id="t01"><br>
<tr><br> <th>Firstname</th><br>
<th>Lastname</th> <br> <th>Points</th><br>
</tr><br> <tr><br> <td>Eve</td><br>
<td>Jackson</td> <br> <td>94</td><br>
</tr><br></table>
</div>
</div>
<div class=\"example\">
<h2 class=\"example\">Now you can define a special style for this table:</h2>
<div class=\"example_code notranslate cssHigh\">
table#t01 \{<br> width: 100%; <br>
background-color: #f1f1c1;<br>\}
</div>
<br><a class=\"tryitbtn\" href=\"tryit.asp?filename=tryhtml_table_id1\" target=\"_blank\">Try it Yourself »</a>
</div>
<div class=\"example\">
<h2 class=\"example\">And add more styles:</h2>
<div class=\"example_code notranslate cssHigh\">
table#t01 tr:nth-child(even) \{<br>
background-color: #eee;<br>\}<br>
table#t01 tr:nth-child(odd) \{<br>
background-color: #fff;<br>\}<br>
table#t01 th \{<br>
color: white;<br> background-color: black;<br>\}
</div>
<br><a class=\"tryitbtn\" href=\"tryit.asp?filename=tryhtml_table_id2\" target=\"_blank\">Try it Yourself »</a>
</div>
<hr>
<h2>Chapter Summary</h2>
<ul>
<li>Use the HTML <strong><table></strong> element to define a table</li>
<li>Use the HTML <strong><tr></strong> element to define a table row</li>
<li>Use the HTML <strong><td></strong> element to define a table data</li>
<li>Use the HTML <strong><th></strong> element to define a table heading</li>
<li>Use the HTML <strong><caption></strong> element to define a table caption</li>
<li>Use the CSS <strong>border</strong> property to define a border</li>
<li>Use the CSS <strong>border-collapse</strong> property to collapse cell borders</li>
<li>Use the CSS <strong>padding</strong> property to add padding to cells</li>
<li>Use the CSS <strong>text-align</strong> property to align cell text</li>
<li>Use the CSS <strong>border-spacing</strong> property to set the spacing between cells</li>
<li>Use the <strong>colspan</strong> attribute to make a cell span many columns</li>
<li>Use the <strong>rowspan</strong> attribute to make a cell span many rows</li>
<li>Use the <strong>id</strong> attribute to uniquely define one table</li>
</ul>
<hr>
<h2>Test Yourself with Exercises!</h2>
<p>
<a class=\"tryitbtn\" href=\"exercise.asp?filename=exercise_tables1\" target=\"_blank\">Exercise 1 »</a>
<a class=\"tryitbtn\" href=\"exercise.asp?filename=exercise_tables2\" target=\"_blank\">Exercise 2 »</a>
<a class=\"tryitbtn\" href=\"exercise.asp?filename=exercise_tables3\" target=\"_blank\">Exercise 3 »</a>
<a class=\"tryitbtn\" href=\"exercise.asp?filename=exercise_tables4\" target=\"_blank\">Exercise 4 »</a>
<a class=\"tryitbtn\" href=\"exercise.asp?filename=exercise_tables5\" target=\"_blank\">Exercise 5 »</a>
<a class=\"tryitbtn\" href=\"exercise.asp?filename=exercise_tables6\" target=\"_blank\">Exercise 6 »</a>
</p>
<hr>
<h2>HTML Table Tags</h2>
<table class=\"reference notranslate\">
<tr>
<th>Tag</th>
<th>Description</th>
</tr>
<tr>
<td><a href=\"/tags/tag_table.asp\"><table></a></td>
<td>Defines a table</td>
</tr>
<tr>
<td><a href=\"/tags/tag_th.asp\"><th></a></td>
<td>Defines a header cell in a table</td>
</tr>
<tr>
<td><a href=\"/tags/tag_tr.asp\"><tr></a></td>
<td>Defines a row in a table</td>
</tr>
<tr>
<td><a href=\"/tags/tag_td.asp\"><td></a></td>
<td>Defines a cell in a table</td>
</tr>
<tr>
<td><a href=\"/tags/tag_caption.asp\"><caption></a></td>
<td>Defines a table caption</td>
</tr>
<tr>
<td><a href=\"/tags/tag_colgroup.asp\"><colgroup></a></td>
<td>Specifies a group of one or more columns in a table for formatting</td>
</tr>
<tr>
<td><a href=\"/tags/tag_col.asp\"><col></a></td>
<td>Specifies column properties for each column within a <colgroup> element</td>
</tr>
<tr>
<td><a href=\"/tags/tag_thead.asp\"><thead></a></td>
<td>Groups the header content in a table</td>
</tr>
<tr>
<td><a href=\"/tags/tag_tbody.asp\"><tbody></a></td>
<td>Groups the body content in a table</td>
</tr>
<tr>
<td><a href=\"/tags/tag_tfoot.asp\"><tfoot></a></td>
<td>Groups the footer content in a table
</td>
</tr>
</table>
<br>
<div class=\"chapter\">
<div class=\"prev\"><a class=\"chapter\" href=\"html_images.asp\">« Previous</a></div>
<div class=\"next\"><a class=\"chapter\" href=\"html_lists.asp\">Next Chapter »</a></div>
</div>
<br>
</div>
</div>
<div class=\"col-lg-2 col-md-2 col-sm-12\">
<div class=\"row sidesection\" style=\"margin-top:15px;padding:0;overflow:visible;\">
<div id=\"skyscraper\">
<div id=\"div-gpt-ad-1422003450156-5\" style=\"min-height:600px;\">
<script>
googletag.cmd.push(function() \{
googletag.display(\'div-gpt-ad-1422003450156-5\');
\});
</script>
</div>
</div>
</div>
<div class=\"row sidesection\">
<h3>W3SCHOOLS EXAMS</h3>
<a target=\"_blank\" href=\"http://www.w3schools.com/cert/default.asp\">HTML, CSS, JavaScript, PHP, jQuery, and XML Certifications</a>
</div>
<div class=\"row sidesection\">
<h3>COLOR PICKER</h3>
<a href=\"/tags/ref_colorpicker.asp\">
<img src=\"/images/colorpicker.gif\" alt=\"colorpicker\"></a>
</div>
<div class=\"row sidesection\">
<h3>SHARE THIS PAGE</h3>
<div class=\"sharethis\">
<script>
<!--
try\{
loc=location.pathname;
if (loc.toUpperCase().indexOf(\".ASP\")<0) loc=loc+\"default.asp\";
txt=\'<a href=\"http://www.facebook.com/sharer.php?u=http://www.w3schools.com\'+loc+\'\" target=\"_blank\" title=\"Facebook\"><span class=\"share sharefacebook social social-facebook\"></span></a>\';
txt=txt+\'<a href=\"http://twitter.com/home?status=Currently reading http://www.w3schools.com\'+loc+\'\" target=\"_blank\" title=\"Twitter\"><span class=\"share sharetwitter social social-twitter\"></span></a>\';
txt=txt+\'<a href=\"https://plus.google.com/share?url=http://www.w3schools.com\'+loc+\'\" target=\"_blank\" title=\"Google+\"><span class=\"share sharegoogle social social-google-plus\"></span></a>\';
document.write(txt);
\}
catch(e) \{\}
//-->
</script>
</div>
</div>
<div class=\"row sidesection\">
<a href=\"javascript:void(0);\" onclick=\"clickFBLike()\" title=\"Like W3Schools on Facebook\">
<span class=\"share sharefblike glyphicons glyphicons-thumbs-up\"></span>
</a>
<div id=\"fblikeframe\">
<div id=\"popupframe\"></div>
<div id=\"popupDIV\"></div>
</div>
</div>
</div>
</div>
<div class=\"row\">
<div class=\"col-lg-12 col-md-12 col-sm-12\">
<hr style=\"margin-bottom:0;\">
<div class=\"bottomads\" style=\"overflow:hidden;\">
<!-- BottomMediumRectangle -->
<div id=\'div-gpt-ad-1422003450156-0\'>
<script type=\'text/javascript\'>
googletag.cmd.push(function() \{ googletag.display(\'div-gpt-ad-1422003450156-0\'); \});
</script>
</div>
<!-- RightBottomMediumRectangle -->
<div id=\'div-gpt-ad-1422003450156-3\'>
<script type=\'text/javascript\'>
googletag.cmd.push(function() \{ googletag.display(\'div-gpt-ad-1422003450156-3\'); \});
</script>
</div>
<div style=\"clear:both\"></div>
</div>
<div class=\"footer\">
<hr style=\"margin-bottom:14px;margin-top:0px;\">
<div class=\"row\">
<div class=\"col-lg-3 col-md-3 col-sm-12\">
<a href=\"\" onclick=\"displayError();return false\" style=\"white-space:nowrap;\">REPORT ERROR</a>
</div>
<div class=\"col-lg-3 col-md-3 col-sm-12\">
<a href=\"\" target=\"_blank\" onclick=\"printPage();return false;\">PRINT PAGE</a>
</div>
<div class=\"col-lg-3 col-md-3 col-sm-12\">
<a href=\"/forum/default.asp\" target=\"_blank\">FORUM</a>
</div>
<div class=\"col-lg-3 col-md-3 col-sm-12\">
<a href=\"/about/default.asp\" target=\"_top\">ABOUT</a>
</div>
</div>
<hr style=\"margin-bottom:2px;margin-top:14px;\">
<div class=\"container-fluid jumbotron\" id=\"err_form\">
<button type=\"button\" class=\"close\" onclick=\"hideError()\"><span>×</span></button>
<h2>Your Suggestion:</h2>
<form role=\"form\">
<div class=\"form-group\">
<label for=\"err_email\">Your Email:</label>
<input class=\"form-control\" type=\"email\" id=\"err_email\" name=\"err_email\" />
</div>
<div class=\"form-group\">
<label for=\"err_email\">Page address:</label>
<input class=\"form-control\" type=\"text\" id=\"err_url\" name=\"err_url\" disabled=\"disabled\" />
</div>
<div class=\"form-group\">
<label for=\"err_email\">Description:</label>
<textarea rows=\"10\" class=\"form-control\" id=\"err_desc\" name=\"err_desc\" style=\"max-width:100%;\"></textarea>
</div>
<div class=\"form-group\">
<button type=\"button\" class=\"btn btn-default\" onclick=\"sendErr()\">Submit</button>
</div>
</form>
</div>
<div class=\"container-fluid jumbotron\" id=\"err_sent\" style=\"clear:both;\">
<button type=\"button\" class=\"close\" onclick=\"hideSent()\"><span>×</span></button>
<h2>Thank You For Helping Us!</h2>
<p>Your message has been sent to W3Schools.</p>
</div>
<div class=\"row\">
<div class=\"col-lg-3 col-md-3 col-sm-6\">
<div class=\"top10\">
<h3>Top 10 Tutorials</h3>
<a href=\"/html/default.asp\">HTML Tutorial</a><br>
<a href=\"/css/default.asp\">CSS Tutorial</a><br>
<a href=\"/js/default.asp\">JavaScript Tutorial</a><br>
<a href=\"/sql/default.asp\">SQL Tutorial</a><br>
<a href=\"/php/default.asp\">PHP Tutorial</a><br>
<a href=\"/jquery/default.asp\">jQuery Tutorial</a><br>
<a href=\"/bootstrap/default.asp\">Bootstrap Tutorial</a><br>
<a href=\"/angular/default.asp\">Angular Tutorial</a><br>
<a href=\"/aspnet/default.asp\">ASP.NET Tutorial</a><br>
<a href=\"/xml/default.asp\">XML Tutorial</a><br>
</div>
</div>
<div class=\"col-lg-3 col-md-3 col-sm-6\">
<div class=\"top10\">
<h3>Top 10 References</h3>
<a href=\"/tags/default.asp\">HTML Reference</a><br>
<a href=\"/cssref/default.asp\">CSS Reference</a><br>
<a href=\"/jsref/default.asp\">JavaScript Reference</a><br>
<a href=\"/browsers/default.asp\">Browser Statistics</a><br>
<a href=\"/jsref/dom_obj_document.asp\">HTML DOM</a><br>
<a href=\"/php/php_ref_array.asp\">PHP Reference</a><br>
<a href=\"/jquery/jquery_ref_selectors.asp\">jQuery Reference</a><br>
<a href=\"/tags/ref_colornames.asp\">HTML Colors</a><br>
<a href=\"/charsets/default.asp\">HTML Character Sets</a><br>
<a href=\"/dom/dom_nodetype.asp\">XML DOM</a><br>
</div>
</div>
<div class=\"col-lg-3 col-md-3 col-sm-6\">
<div class=\"top10\">
<h3>Top 10 Examples</h3>
<a href=\"/html/html_examples.asp\">HTML Examples</a><br>
<a href=\"/css/css_examples.asp\">CSS Examples</a><br>
<a href=\"/js/js_examples.asp\">JavaScript Examples</a><br>
<a href=\"/js/js_dom_examples.asp\">HTML DOM Examples</a><br>
<a href=\"/php/php_examples.asp\">PHP Examples</a><br>
<a href=\"/jquery/jquery_examples.asp\">jQuery Examples</a><br>
<a href=\"/xml/xml_examples.asp\">XML Examples</a><br>
<a href=\"/dom/dom_examples.asp\">XML DOM Examples</a><br>
<a href=\"/asp/asp_examples.asp\">ASP Examples</a><br>
<a href=\"/svg/svg_examples.asp\">SVG Examples</a>
</div>
</div>
<div class=\"col-lg-3 col-md-3 col-sm-6\">
<div class=\"top10\">
<h3>Web Certificates</h3>
<a href=\"/cert/default.asp\">HTML Certificate</a><br>
<a href=\"/cert/default.asp\">HTML5 Certificate</a><br>
<a href=\"/cert/default.asp\">CSS Certificate</a><br>
<a href=\"/cert/default.asp\">JavaScript Certificate</a><br>
<a href=\"/cert/default.asp\">jQuery Certificate</a><br>
<a href=\"/cert/default.asp\">PHP Certificate</a><br>
<a href=\"/cert/default.asp\">Bootstrap Certificate</a><br>
<a href=\"/cert/default.asp\">XML Certificate</a><br>
</div>
</div>
</div>
<hr>
</div>
<div class=\"footer\">
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 <a href=\"/about/about_copyright.asp\">terms of use</a>,
<a href=\"/about/about_privacy.asp\">cookie and privacy policy</a>.
<a href=\"/about/about_copyright.asp\">Copyright 1999-2015</a> by Refsnes Data. All Rights Reserved.<br><br>
<a href=\"http://www.w3schools.com\">
<img style=\"width:150px;height:28px;border:0\" src=\"/images/w3schoolscom_gray.gif\" alt=\"W3Schools.com\"></a>
</div>
</div>
</div>
</div>
</div>
</div>
<div id=\'w3dropdowntutorials\' class=\'w3DropdownMenu container-fluid\'>
<div class=\"w3DropdownInner\">
<button type=\"button\" class=\"xclose w3DropdownClose\" onclick=\"hideDropdownMenu()\" title=\"Close\"><span>×</span></button>
<br>
<div class=\"w3DropdownItem\">
<h3>HTML/CSS</h3>
<a href=\'/html/default.asp\'>HTML Tutorial</a>
<a href=\'/css/default.asp\'>CSS Tutorial</a>
<a href=\'/w3css/default.asp\'>W3.CSS Tutorial</a>
<a href=\'/bootstrap/default.asp\'>Bootstrap Tutorial</a>
</div>
<div class=\"w3DropdownItem\">
<h3>JavaScript</h3>
<a href=\'/js/default.asp\'>JavaScript Tutorial</a>
<a href=\'/jquery/default.asp\'>jQuery Tutorial</a>
<a href=\'/jquerymobile/default.asp\'>jQuery Mobile Tutorial</a>
<a href=\'/appml/default.asp\'>AppML Tutorial</a>
<a href=\'/angular/default.asp\'>AngularJS Tutorial</a>
<a href=\'/ajax/default.asp\'>AJAX Tutorial</a>
<a href=\'/json/default.asp\'>JSON Tutorial</a>
</div>
<div class=\"w3DropdownItem\">
<h3>Graphics</h3>
<a href=\'/canvas/default.asp\'>Canvas Tutorial</a>
<a href=\'/svg/default.asp\'>SVG Tutorial</a>
<a href=\'/icons/default.asp\'>Icons Tutorial</a>
<a href=\'/googleapi/default.asp\'>Google Maps Tutorial</a>
</div>
<div class=\"w3DropdownItem\">
<h3>Server Side</h3>
<a href=\'/sql/default.asp\'>SQL Tutorial</a>
<a href=\'/php/default.asp\'>PHP Tutorial</a>
<a href=\'/asp/default.asp\'>ASP Tutorial</a>
<a href=\'/aspnet/default.asp\'>ASP.NET Tutorial</a>
</div>
<div class=\"w3DropdownItem\">
<h3>Web</h3>
<a href=\'/website/default.asp\'>Web Building</a>
<a href=\'/browsers/default.asp\'>Web Statistics</a>
<a href=\'/cert/default.asp\'>Web Certification</a>
</div>
<div class=\"w3DropdownItem\">
<h3>XML</h3>
<a href=\'/xml/default.asp\'>XML Tutorial</a>
<a href=\'/schema/default.asp\'>Schema Tutorial</a>
<a href=\'/dom/default.asp\'>XML DOM Tutorial</a>
<a href=\'/xsl/default.asp\'>XSLT Tutorial</a>
<a href=\'/xquery/default.asp\'>XQuery Tutorial</a>
<a href=\'/webservices/default.asp\'>WSDL Tutorial</a>
</div>
</div>
</div>
<div id=\'w3dropdownreferences\' class=\'w3DropdownMenu container-fluid\'>
<div class=\"w3DropdownInner\">
<button type=\"button\" class=\"xclose w3DropdownClose\" onclick=\"hideDropdownMenu()\" title=\"Close\"><span>×</span></button>
<br>
<div class=\"w3DropdownItem\">
<h3>HTML/CSS</h3>
<a href=\'/tags/default.asp\'>HTML Tag Reference</a>
<a href=\'/tags/ref_eventattributes.asp\'>HTML Event Reference</a>
<a href=\'/tags/ref_colornames.asp\'>HTML Color Reference</a>
<a href=\'/cssref/default.asp\'>CSS 1,2,3 Reference</a>
<a href=\'/w3css/w3css_reference.asp\'>W3.CSS Reference</a>
<a href=\'/bootstrap/bootstrap_ref_css_text.asp\'>Bootstrap Reference</a>
</div>
<div class=\"w3DropdownItem\">
<h3>JavaScript</h3>
<a href=\'/jsref/default.asp\'>JavaScript Reference</a>
<a href=\'/jsref/default.asp\'>HTML DOM Reference</a>
<a href=\'/jquery/jquery_ref_selectors.asp\'>jQuery Reference</a>
<a href=\'/jquerymobile/jquerymobile_ref_data.asp\'>jQuery Mobile Reference</a>
<a href=\'/googleAPI/google_maps_ref.asp\'>Google Maps Reference</a>
</div>
<div class=\"w3DropdownItem\">
<h3>Server Side</h3>
<a href=\'/php/php_ref_array.asp\'>PHP Reference</a>
<a href=\'/sql/sql_quickref.asp\'>SQL Reference</a>
<a href=\'/asp/asp_ref_response.asp\'>ASP Reference</a>
<a href=\'/aspnet/webpages_ref_classes.asp\'>Razor Reference</a>
<a href=\'/aspnet/aspnet_refhtmlcontrols.asp\'>ASP.NET Reference</a>
</div>
<div class=\"w3DropdownItem\">
<h3>XML</h3>
<a href=\'/dom/dom_nodetype.asp\'>XML DOM Reference</a>
<a href=\'/xsl/xsl_w3celementref.asp\'>XSLT Reference</a>
<a href=\'/xquery/xquery_reference.asp\'>XQuery Reference</a>
<a href=\'/schema/schema_elements_ref.asp\'>Schema Reference</a>
<a href=\'/svg/svg_reference.asp\'>SVG Reference</a>
</div>
<div class=\"w3DropdownItem\">
<h3>Charsets</h3>
<a href=\'/charsets/default.asp\'>HTML Character Sets</a>
<a href=\'/charsets/ref_html_ascii.asp\'>HTML ASCII</a>
<a href=\'/charsets/ref_html_ansi.asp\'>HTML ANSI</a>
<a href=\'/charsets/ref_html_ansi.asp\'>HTML Windows-1252</a>
<a href=\'/charsets/ref_html_8859.asp\'>HTML ISO-8859-1</a>
<a href=\'/charsets/ref_html_symbols.asp\'>HTML Symbols</a>
<a href=\'/charsets/ref_html_utf8.asp\'>HTML UTF-8</a>
</div>
</div>
</div>
<div id=\'w3dropdownexamples\' class=\'w3DropdownMenu container-fluid\'>
<div class=\"w3DropdownInner\">
<button type=\"button\" class=\"xclose w3DropdownClose\" onclick=\"hideDropdownMenu()\" title=\"Close\"><span>×</span></button>
<br>
<div class=\"w3DropdownItem\">
<h3>HTML/CSS</h3>
<a href=\'/html/html_examples.asp\'>HTML Examples</a>
<a href=\'/css/css_examples.asp\'>CSS Examples</a>
<a href=\'/w3css/w3css_examples.asp\'>W3.CSS Examples</a>
</div>
<div class=\"w3DropdownItem\">
<h3>JavaScript</h3>
<a href=\"/js/js_examples.asp\" target=\"_top\">JavaScript Examples</a>
<a href=\"/js/js_dom_examples.asp\" target=\"_top\">HTML DOM Examples</a>
<a href=\"/jquery/jquery_examples.asp\" target=\"_top\">jQuery Examples</a>
<a href=\"/jquerymobile/jquerymobile_examples.asp\" target=\"_top\">jQuery Mobile Examples</a>
<a href=\"/angular/angular_examples.asp\" target=\"_top\">AngularJS Examples</a>
<a href=\"/ajax/ajax_examples.asp\" target=\"_top\">AJAX Examples</a>
</div>
<div class=\"w3DropdownItem\">
<h3>Server Side</h3>
<a href=\"/php/php_examples.asp\" target=\"_top\">PHP Examples</a>
<a href=\"/asp/asp_examples.asp\" target=\"_top\">ASP Examples</a>
<a href=\"/aspnet/webpages_examples.asp\" target=\"_top\">Razor Examples</a>
<a href=\"/aspnet/aspnet_examples.asp\" target=\"_top\">.NET Examples</a>
</div>
<div class=\"w3DropdownItem\">
<h3>XML</h3>
<a href=\"/xml/xml_examples.asp\" target=\"_top\">XML Examples</a>
<a href=\"/dom/dom_examples.asp\" target=\"_top\">XML DOM Examples</a>
<a href=\"/xsl/xsl_examples.asp\" target=\"_top\">XSL Examples</a>
<a href=\"/xsl/xsl_examples.asp\" target=\"_top\">XSLT Examples</a>
<a href=\"/xsl/xpath_examples.asp\" target=\"_top\">XPath Examples</a>
<a href=\"/xquery/xquery_example.asp\" target=\"_top\">XQuery Examples</a>
<a href=\"/schema/schema_example.asp\" target=\"_top\">Schema Examples</a>
<a href=\"/svg/svg_examples.asp\" target=\"_top\">SVG Examples</a>
</div>
</div>
</div>
<div id=\'w3dropdownsearch\' class=\'w3DropdownMenu container-fluid\' style=\"overflow:visible;\">
<div class=\"w3DropdownInner\">
<button type=\"button\" class=\"xclose w3DropdownClose\" onclick=\"hideDropdownMenu()\" title=\"Close\"><span>×</span></button>
<br>
<div class=\"w3DropdownInnerInner\">
Search w3schools.com:
<div id=\'googleSearch\' style=\"color:#000000;font-size:15px !important;\"><div class=\'gcse-search\'></div></div>
</div>
</div>
</div>
<div id=\'w3dropdowntranslate\' class=\'w3DropdownMenu container-fluid\'>
<div class=\"w3DropdownInner\">
<button type=\"button\" class=\"xclose w3DropdownClose\" onclick=\"hideDropdownMenu()\" title=\"Close\"><span>×</span></button>
<br>
<div class=\"w3DropdownInnerInner\">
<div id=\'translateSection\'>
Translate w3schools.com:<div id=\'google_translate_element\'></div></div>
</div>
</div>
</div>
<script>
var menu = $(\'#topnavDIV\'), pos = menu.offset();
$(window).scroll(function()\{
if($(this).scrollTop() > 40)\{
$(\"#topDIV\").css(\"display\",\"none\");
\} else \{
$(\"#topDIV\").css(\"display\",\"\");
\}
if($(this).scrollTop() > pos.top)\{
menu.addClass(\'topnavContainerScroll\');
$(\".w3DropdownMenu\").addClass(\'w3DropdownMenuScroll\');
$(\"#menyen\").addClass(\'menyenScroll\');
\} else if($(this).scrollTop() <= pos.top)\{
menu.removeClass(\'topnavContainerScroll\');
$(\".w3DropdownMenu\").removeClass(\'w3DropdownMenuScroll\');
$(\"#menyen\").removeClass(\'menyenScroll\');
\} \});
$(document).ready(function()\{
if(/Opera Mini/i.test(navigator.userAgent) ) \{
$(\".topnavContainer\").addClass(\'topnavContainerOperaMini\');
$(\".prev\").addClass(\'prevOperaMini\');
$(\".next\").addClass(\'nextOperaMini\');
$(\".home\").addClass(\'homeOperaMini\');
$(\".video\").addClass(\'videoOperaMini\');
\}
if($(this).scrollTop() > 40)\{
$(\"#topDIV\").css(\"display\",\"none\");
\} else \{
$(\"#topDIV\").css(\"display\",\"\");
\}
$(\"#dropdownTutorialsBtn\").click(function()\{
closeTheOthers(\"tutorials\");
if ($(\"#w3dropdowntutorials\").css(\"display\") == \"none\") \{
$(\"#dropdownTutorialsBtn\").css(\"background-color\",\"#f5f5f5\");
$(\"#dropdownTutorialsBtn\").css(\"color\",\"#555555\");
\} else \{
$(\"#dropdownTutorialsBtn\").css(\"background-color\",\"\");
$(\"#dropdownTutorialsBtn\").css(\"color\",\"\");
\}
$(\"#w3dropdowntutorials\").fadeToggle(200, function () \{$(\"#dropdownTutorialsBtn\").css(\"background-color\",\"\");$(\"#dropdownTutorialsBtn\").css(\"color\",\"\");\});
return false;
\});
$(\"#dropdownReferencesBtn\").click(function()\{
closeTheOthers(\"references\");
if ($(\"#w3dropdownreferences\").css(\"display\") == \"none\") \{
$(\"#dropdownReferencesBtn\").css(\"background-color\",\"#f5f5f5\");
$(\"#dropdownReferencesBtn\").css(\"color\",\"#555555\");
\} else \{
$(\"#dropdownReferencesBtn\").css(\"background-color\",\"\");
$(\"#dropdownReferencesBtn\").css(\"color\",\"\");
\}
$(\"#w3dropdownreferences\").fadeToggle(200, function()\{$(\"#dropdownReferencesBtn\").css(\"background-color\",\"\");$(\"#dropdownReferencesBtn\").css(\"color\",\"\");\});
return false;
\});
$(\"#dropdownExamplesBtn\").click(function()\{
closeTheOthers(\"examples\");
if ($(\"#w3dropdownexamples\").css(\"display\") == \"none\") \{
$(\"#dropdownExamplesBtn\").css(\"background-color\",\"#f5f5f5\");
$(\"#dropdownExamplesBtn\").css(\"color\",\"#555555\");
\} else \{
$(\"#dropdownExamplesBtn\").css(\"background-color\",\"\");
$(\"#dropdownExamplesBtn\").css(\"color\",\"\");
\}
$(\"#w3dropdownexamples\").fadeToggle(200, function()\{$(\"#dropdownExamplesBtn\").css(\"background-color\",\"\");$(\"#dropdownExamplesBtn\").css(\"color\",\"\");\});
return false;
\});
$(\"#dropdownSearchBtn\").click(function()\{
closeTheOthers(\"search\");
if ($(\"#w3dropdownsearch\").css(\"display\") == \"none\") \{
$(\"#dropdownSearchBtn\").css(\"background-color\",\"#f5f5f5\");
$(\"#dropdownSearchBtn\").css(\"color\",\"#555555\");
\} else \{
$(\"#dropdownSearchBtn\").css(\"background-color\",\"\");
$(\"#dropdownSearchBtn\").css(\"color\",\"\");
\}
$(\"#w3dropdownsearch\").fadeToggle(200, function()\{$(\"#gsc-i-id1\").focus();$(\"#dropdownSearchBtn\").css(\"background-color\",\"\");\});
return false;
\});
$(\"#dropdownTranslateBtn\").click(function()\{
closeTheOthers(\"translate\");
if ($(\"#w3dropdowntranslate\").css(\"display\") == \"none\") \{
$(\"#dropdownTranslateBtn\").css(\"background-color\",\"#f5f5f5\");
$(\"#dropdownTranslateBtn\").css(\"color\",\"#555555\");
\} else \{
$(\"#dropdownTranslateBtn\").css(\"background-color\",\"\");
$(\"#dropdownTranslateBtn\").css(\"color\",\"\");
\}
$(\"#w3dropdowntranslate\").fadeToggle(200, function()\{$(\"#dropdownTranslateBtn\").css(\"background-color\",\"\");\});
return false;
\});
$(\".main\").click(function()\{
closeTheOthers();
\});
$(\".top\").click(function()\{
closeTheOthers();
\});
\});
function closeTheOthers(x) \{
if (x != \"tutorials\") \{
$(\"#dropdownTutorialsBtn\").css(\"background-color\",\"\");
$(\"#dropdownTutorialsBtn\").css(\"color\",\"\");
$(\"#w3dropdowntutorials\").fadeOut(100);
\}
if (x != \"references\") \{
$(\"#dropdownReferencesBtn\").css(\"background-color\",\"\");
$(\"#dropdownReferencesBtn\").css(\"color\",\"\");
$(\"#w3dropdownreferences\").fadeOut(100);
\}
if (x != \"examples\") \{
$(\"#dropdownExamplesBtn\").css(\"background-color\",\"\");
$(\"#dropdownExamplesBtn\").css(\"color\",\"\");
$(\"#w3dropdownexamples\").fadeOut(100);
\}
if (x != \"search\") \{
$(\"#dropdownSearchBtn\").css(\"background-color\",\"\");
$(\"#dropdownSearchBtn\").css(\"color\",\"\");
$(\"#w3dropdownsearch\").fadeOut(100);
\}
if (x != \"translate\") \{
$(\"#dropdownTranslateBtn\").css(\"background-color\",\"\");
$(\"#dropdownTranslateBtn\").css(\"color\",\"\");
$(\"#w3dropdowntranslate\").fadeOut(100);
\}
\}
var menyknapp_hartrykket = 0;
function vismenyen() \{
closeTheOthers();
x = document.getElementById(\"menyen\");
if (menyknapp_hartrykket == 0) \{
if(/Opera Mini/i.test(navigator.userAgent) ) \{
x.style.display = \"block\";
x.style.paddingBottom = \"40px\";
\} else \{
x.style.position = \"fixed\";
x.style.zIndex = \"1000\";
if ($(\"#toptext\").css(\"display\") == \"none\") \{
x.style.top = \"105px\";
\} else \{
x.style.top = \"135px\";
\}
x.style.bottom = \"0\";
x.style.overflow = \"auto\";
x.style.display = \"block\";
x.style.right = \"0\";
x.style.backgroundColor = \"#ffffff\";
x.style.padding = \"20px\";
x.style.borderLeft = \"2px solid #f1f1f1\";
x.style.borderBottom = \"2px solid #f1f1f1\";
\}
menyknapp_hartrykket = 1;
\} else \{
x.style.display = \"none\";
menyknapp_hartrykket = 0;
\}
\}
function hideDropdownMenu() \{
closeTheOthers();
\}
skyscraperResize();
</script>
<script src=\"/w3schools.js\"></script>
<script src=\"//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit\"></script>
<!--[if lt IE 9]>
<script src=\"https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js\"></script>
<script src=\"https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js\"></script>
<![endif]-->
</body>
</html>
","Global")
plugin command("Data and Files Automation.dll", "table from html", #d, "//table[@class=\'reference\']", "True", &table)