cite/q/blockquote Inline-Block Classify

Classifies cite, q and blockquote by standard content category and meaning. Phrasing content is reported rather than a CSS display guarantee.

Description

Cite identifies a work’s title, while q and blockquote identify quotations.

Cite identifies a work’s title, while q and blockquote identify quotations. HTML content categories and CSS display are separate concepts.1

Classifies cite, q and blockquote by standard content category and meaning. Phrasing content is reported rather than a CSS display guarantee.

When to use cite/q/blockquote Inline-Block Classify

Use this for the following task: Classifies cite, q and blockquote by standard content category and meaning. Phrasing content is reported rather than a CSS display guarantee.

Prepare the parsed attribute values, element states or ordered local lists requested below. Keep attribute presence separate from value.

How to use cite/q/blockquote Inline-Block Classify and understand its results

  1. Prepare the parsed attribute values, element states or ordered local lists requested below. Keep attribute presence separate from value.
  2. Enter tag using the field table, then run the tool.
  3. Read phrasing, quotation, workTitle. Interpret flags, units, ordering and placeholder values using the rules below.
  4. Review any reported issue or failed check, correct the supplied values when appropriate, and verify the result in its intended context.
Input fieldMeaningValue type and boundsRequirement
tagTagstring; choose "cite", "q", "blockquote"Required

Choose cite, q or blockquote and return the three semantic flags.2

phrasing = tag != blockquote; quotation = tag != cite; workTitle = tag == cite

This summarizes the declared operation. Units, indexing, inclusivity and exceptional cases are explained in the surrounding text.

Output fieldMeaningValue type
phrasingPhrasingboolean
quotationQuotationboolean
workTitleWork Titleboolean
json
{
  "input": {
    "tag": "q"
  },
  "output": {
    "phrasing": true,
    "quotation": true,
    "workTitle": false
  }
}

Limitations and assumptions

This does not validate a quotation, its source URL or how CSS displays the element.

This evaluates supplied local information; it does not fetch a page or run a browser. Malformed requests produce input errors. A successfully evaluated request can still contain false flags, empty result lists or a result outside the supplied threshold; those outcomes have the meanings stated above.

Alternative or Complementary methods

Choose b/i vs strong/em Semantic Split for this operation: Classifies b, i, strong and em by standard meaning: attention, alternate voice, importance or stress emphasis. Font weight and style are not inferred. For a complementary task, use ruby/rt/rp Structure Lookup for this operation: Classifies ruby as the annotation container, rt as annotation text and rp as fallback parentheses. This vocabulary lookup does not validate a complete ruby content model.

Further background: HTML / accessibility reference: cite/q/blockquote Inline-Block Classify.

References

  1. HTML / accessibility reference: cite/q/blockquote Inline-Block Classify — WHATWG

  2. cite/q/blockquote Inline-Block Classify — tool.io

Similar or alternative tools

  • b/i vs strong/em Semantic Split

    Classifies b, i, strong and em by standard meaning: attention, alternate voice, importance or stress emphasis. Font weight and style are not inferred.

  • ruby/rt/rp Structure Lookup

    Classifies ruby as the annotation container, rt as annotation text and rp as fallback parentheses. This vocabulary lookup does not validate a complete ruby content model.

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies