Skip to content

no captionless tables

Sid Vishnoi edited this page Jul 5, 2022 · 1 revision

no-captionless-tables

Enable this lint rule to get a warning if there is some <table> in the document that does not contain a <caption>.

This only applies applies to tables with a .numbered class. Note that, the <caption> must be the first child of <table>.

For example:

<table class="numbered">
  <tr><td>...</td></tr> <!-- warning: no caption -->
</table>

You'll receive a warning pointing you to the caption-less table.

var respecConfig = {
  lint: {
    "no-captionless-tables": true,
  },
};

Guides

Configuration options

W3C Configuration options

Linter rules

Internal properties

Handled by ReSpec for you.

Special <section> IDs

HTML elements

Custom Elements

WebIDL

HTML attributes

CSS Classes

Special properties

Clone this wiki locally