Skip to main content
All CollectionsAdvanced GuidesWebsite management
How to exclude a region of a page from being tested
How to exclude a region of a page from being tested
Daniel Towers avatar
Written by Daniel Towers
Updated over a year ago

Sometimes part of your pages will contain code that you do not want to test. For example, you might include user-generated content on parts of your page that you don’t want to spell check.

You can optionally exclude regions of a page from some tests with the data-silktide attribute:

<div data-silktide="ignore"> ... </div>

This works for any tag, not just <div>. So you can ignore links, images, and so on. All tags inside an ignored tag are also ignored.

Not every test currently supports this feature. The following tests support it currently:

  • Spell checking

  • Grammar checking

  • Broken links

  • Readability

Did this answer your question?