Examples (16)

Last updated Aug 20, 2026

Definition

A code sample or line of text that shows the specific structure of a request/response, input/output, or value for UI/API elements

Note

If you are unsure about when to categorize something as an example or tutorial, remember:

Examples are a component attribute and are typically a snippet of code a user might copy and paste to run a task. Examples should not have multiple steps. A tutorial might contain an example, but an example will not contain a tutorial.

Tutorials are a content type, typically longer form, and contain multiple steps to help users connect products to real-world scenarios.

Used in

Tutorial, How to, Reference

Structure

Context

Explain what the code sample does in a short sentence.

Code blocks or snippets

These could include:

  • Example requests and responses
  • Example inputs and outputs
  • Field values for UI and/or API

Additional information

Code block guidelines

Requests/feedback

https://github.com/cloudflare/cloudflare-docs/issues/150 ↗︎

Was this helpful?

YesNo

On this page

Examples (16) - 图1Docs

{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/style-guide/documentation-content-strategy/component-attributes/examples/#page","headline":"Examples","description":"Write effective examples in documentation.","url":"https://developers.cloudflare.com/style-guide/documentation-content-strategy/component-attributes/examples/","inLanguage":"en","image":"https://developers.cloudflare.com/style-guide/documentation-content-strategy/component-attributes/examples/og.png?v=bcc261551339b063","dateModified":"2026-08-20","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}


description: Write glossary term definitions. title: Glossary entry image: https://developers.cloudflare.com/style-guide/documentation-content-strategy/component-attributes/glossary-entry/og.png?v=551c83a3d3936008


Skip to content

Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/style-guide/llms.txt
Use this file to discover all available pages before exploring further.