Paragraph

Paragraph is a block of text.

Usage

Paragraphs display blocks of text separated by a line break with some configuration in terms of font-size, font-weight and color. It does not add any spacing with respect to any other element and should be used to structure text blocks only.

To space different paragraphs from each other or a paragraph with other elements we must include them in a DxcFlex.

Do's

  • Use paragraphs for text blocks.
  • Break text into paragraphs to help screen readers provide shortcuts to the user.
  • Split content into small paragraphs to make it easier to read.

Don'ts

  • Use paragraphs that are too long and make it difficult to find information within the text.
  • Nest paragraphs inside each other.
  • Use paragraph for anything other than text. Paragraphs are for text blocks and not for any other thing.