Skip to main content

--as-h2 As Heading2

Accepted keys

  • --as-h2
  • --as-heading2
  • --as-headline2
  • --h2
  • --heading2
  • --headline2

Syntax​

`--h2${"="typeof boolean}`

Example​

--h2

--h2=true
--h2=false

--h2=yes
--h2=no

----h2

When to use​

SEO

Explicitly specifying the heading element tag, ofcourse, is essential for SEO. This does not applies to mobile apps, but for web, you might want to specify headings in a semantic sence.

Behavior​

Element When applied, this will force the node to be rendered as a <h2> element.

Text style We don't yet support text style matching with --h2 flag.

See Also​