Close this window

Using the <title> tag

Description

The title tag is used to insert an optional label or title for a CNXML object such as a section, list, exercise, para, or other elements where titles may be appropriate.

Note: The title element replaces the now-deprecated name element beginning with CNXML 0.6.

Example

This CNXML:


<list id="groceries">
  <title>Grocery List</title>
  <item>Milk</item>
  <item>Eggs</item>
  <item>Sugar</item>
</list> 
        

Results in this display:

Grocery List

Example

This CNXML:


<section id="intro">
  <title>An Introduction to CNXML</title>
  <para id="cnxml">
    <title>Part 1</title>
    This paragraph presents a brief introduction 
    to a customized version of XML called CNXML.
  </section> 
</section> 
        

Results in this display:

An Introduction to CNXML

Part 1

This paragraph presents a brief introduction to a customized version of XML called CNXML.

Attributes(what's this?)

Children(what's this?)

code (inline display only), preformat (inline display only), quote (inline display only), note (inline display only), list (inline display only), term, cite, cite-title, foreign, emphasis, sub, sup, media, footnote, link, newline, space, Unicode text

Parents(what's this?)

section, preformat, para, quote, footnote, equation, note, list, code, figure, subfigure, example, exercise, problem, solution, commentary, meaning, rule, statement, proof, table
Close this window