<p>
<p> is a Paragraph Markup
component that renders a paragraph of text.
Attributes and Properties
The <p> component has no attributes.
| Property | Type |
|---|---|
$p.aggregateScores | boolean |
$p.creditAchieved | number |
$p.disabled | boolean |
$p.displayDigitsForCreditAchieved | integer |
$p.fixed | boolean |
$p.fixLocation | boolean |
$p.hidden | boolean |
$p.percentCreditAchieved | number |
$p.sectionWideCheckWork | boolean |
$p.submitLabel | text |
$p.submitLabelNoCorrectness | text |
$p.text | text |
$p.weight | number |
Example: Two paragraphs
All text enclosed within an opening and closing <p> forms a paragraph.
Example: <p> within sectional components
Paragraphs can be nested within sectional components such as a <section>, <example>, <exercise>, or <problem>.
Example: <p> within an <li>
The <p> component can be nested inside list items to provide additional line spacing.
Example: Separate text and math content
Frequently a <p> tag is used to separate lines of text and sections of math content, such as a <graph>, a <mathInput/>, or an <answer>. Try deleting all of the <p> tags from the example above to observe the effect.