<< Chapter < Page | Chapter >> Page > |
The
title
tag can be used with
many CNXML tags to hold the name of its parent. This tagcan only contain information in ASCII text or MathML. I mention it
here to allow you to put in the name of the module (since Imentioned that it was the first required tag in the document
tag).
<title>Grilling a Good Steak</title>
Now that you have the
document
tag set up with an id and namespace info, the next thing to
do with your document is add content. By 'content' I meanthe text that will make up the bulk of your document.
content
tag. Every CNXML
document will have one
content
tag. The body of the document will be here inside the
content
tag.
Some of the structure tags are section , para , document , and content .
We have already discussed the document and content tags, so we will proceed with a short description and examples of the other other tags listed.
Text can be inserted into documents by using the
para
tag. Each para has a required
id
which must be unique
within the document.
<para id='intro'>I have eaten many steaks in my life and none have been more satisfying
than the backyard-grill cooked steak. Maybe this is because of therelaxing nature of drinking a beer, being outside, and lounging that
accompanies the grilling procedure. Maybe it is because of the aromaof the grill and the beef perfectly seasoned to your taste. Either
way, this document shows how a good steak can be prepared.</para>
As often is the case in textbooks, chapters are divided
into smaller sections. Because it is often necessary tosegment text for better understanding and coherence,
CNXML has included a
section
tag.
The section tag has one required attribute,
id
, and a optional first child tag,
title .
<section id='ingredsec'><title>Ingredients</title><list>...</list></section><section id='marinadesec'><title>Marinade</title><para id='marinate'>...</para><list id='marinade'>...</list><para id='tobecontinued'>...</para></section><section id='grillingsec'><title>Grilling</title><para id='prepgrill'>...</para><para id='grilling'>...</para></section>
Obviously ellipses would be replaced by appropriate text.
The
emphasis
tag is used to
emphasize text in a CNXML document where emphasis intext would be needed or desired. It is important to
note that this refers to
semantic emphasis and not a typeface, although many stylesheets
may choose to render it visually with a differenttypeface.
Notification Switch
Would you like to follow the 'Connexions tutorial and reference' conversation and receive update notifications?