Close this window

Using the <newline> tag

Description

The newline tag is used to create an explicit line break in a body of text. It can also be used to insert one or more blank lines in the document.

Example

This CNXML:


<para id="favorite-lyric">
  <quote display="inline">All we 
  are is dust in the wind.</quote>
  <newline />
  - <cite>Kansas</cite>
</para>
        

Results in this display:

"All we are is dust in the wind."
- Kansas

Example

This CNXML:


<exercise id="exercise1">
  <problem id="ex1problem">
    <para id="ex1para">
      Name three ways you can conserve water at home.
      <newline count="2" />
      1.
      <newline count="2" />
      2.
      <newline count="2" />
      3.
    </para>
  </problem>
</exercise>

<exercise id="exercise2">
  <problem id="ex2problem">
    <para id="ex2para">
      In the space below, explain why water
      conservation is important for the environment.
      <newline count="5" effect="underline" />
    </para>
  </problem>
</exercise>        
        

Results in this display:

Exercise 1

Name three ways you can conserve water at home.

1.

2.

3.

Exercise 2

In the space below, explain why water conservation is important for the environment.






Attributes(what's this?)

Children(what's this?)

The newline tag is an empty tag and does not contain any children.

Parents(what's this?)

preformat, para, title, label, cite, cite-title, link, emphasis, term, sub, sup, quote, foreign, footnote, note, item, code, caption, commentary, meaning, entry
Close this window