"p" Element

Description

Treats the text surrounded by this tag as a paragraph.

Syntax

<p
  xml:lang = "locale">
  child elements
</p>

Attributes

AttributeDescription
xml:langSpecifies the language and locale to be used for the paragraph. Optional field.

Parent

<audio>, <prosody>, <speak>, <voice>

Children

<audio>, <break>, <emphasis>, <mark>, <phoneme>, <prosody>, <say-as>, <sub>, <s>, <voice>, #TEXT, #CDATA-SECTION

Limitations/Restrictions

Regardless of punctuation marks, a pause (1000 ms) is inserted at the beginning and end of the text to define the boundaries of a paragraph.

If the specified xml:lang value does not exist, the attribute is ignored.

Example

<?xml version="1.0"?>
<speak version="1.0" xmlns="http://www.w3.org/2001/10/synthesis"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation="http://www.w3.org/2001/10/synthesis
               http://www.w3.org/TR/speech-synthesis/synthesis.xsd"
     xml:lang="en-US">

  <p>
    <s>This is the first sentence of the paragraph.</s>
    <s>Here's another sentence.</s>
  </p>
</speak>

Was this article helpful?