Text block

The Text Block element is a component used to display text content on web pages. By default, this element utilizes the HTML ‘div’ tag, but it is often preferred to be used in conjunction with the ‘p’ (paragraph) tag. This tag can be changed in the ‘Settings’ section.

The Text Block element can be used with various HTML tags to display text in appropriate formats. These include ‘pre’, ‘code’, ‘p’, and ‘blockquote’ tags.

  • P: The “P” (paragraph) tag represents text paragraphs and is used for standard text blocks on the page. This tag facilitates the presentation of plain text content.
  • Code: The “Code” tag is used to display code snippets or programming code examples. This tag displays the text in a monospace font by default, enhancing the readability of the code.
  • Blockquote: The “Blockquote” tag is used for cited texts. It is typically presented with a different style or indentation than other text, helping to distinguish quotations.
  • Pre: The “Pre” (preformatted text) tag displays formatted texts exactly as they are. It maintains the text in its original format, including spaces and line breaks, making it ideal for code blocks and similar content.

Additionally, the Text Block element supports PHP code, allowing you to directly write your PHP code into the text input area.