Javascript – HTML table API

You can easily create an HTML table completely with Javascript. Let’s first create a table

, <span>Javascript – HTML table API</span>, KandZ

Insert rows and cells

, <span>Javascript – HTML table API</span>, KandZ
, <span>Javascript – HTML table API</span>, KandZ
CSS
, <span>Javascript – HTML table API</span>, KandZ

You can also add a caption

, <span>Javascript – HTML table API</span>, KandZ
, <span>Javascript – HTML table API</span>, KandZ

Add a THEAD and TFOOT using createTHead() and createTFoot(). Other useful methods are:

  • deleteCaption()
  • deleteRow()
  • deleteCell()

Some properties:

, <span>Javascript – HTML table API</span>, KandZ
, <span>Javascript – HTML table API</span>, KandZ

105770cookie-checkJavascript – HTML table APIJavascript – HTML table API

Related posts

One Thought to “Javascript – HTML table API

Comments are closed.