Jaxe, your XML editor
Jaxe, your XML editor

The XPAGES language
• Introduction
• Documents structure
• Informations
• Block elements
• Elements mixed with text
• Exercises

# Block elements

Author: Damien Guillaume

Block elements are XML elements that can be directly inserted inside a `Page` element. They are used to structure the document, but are not mixed with text : it is not possible to insert text directly under `Page`, because text must necessarily be inside a block element.

XPAGES has the following block elements :

- `Section` : used to identify an area inside a page, with a title, a semantic role, and an importance. The role is optional, but is important to give meaning to the different parts of the document. It can also be used later to display sections with the same role in a similar way, to visually distinguish them from other sections.
- `Paragraph` : a paragraph is one or several sentences. To do a "line break" (this idea is quoted because it is related to presentation instead of content), it is necessary to create a new paragraph.
- `List` : a list of `List item` elements. Items can contain text, but also paragraphs or sublists.
- `Table` : a table is formed with a given number of lines and columns. It is possible to specify a line of titles (the first line of the table). Also, cells can be merged, and an alignment can be specified inside the cells.
- `Image environment` : an element grouping the informations related to an image (copyright and legend), and a link to the image file. It is also possible to create a link on the image, so that a click on it redirects to another part of the site or an external page.
- `Java applet` : a Java applet, for instance for interactive simulations.
- `Flash object` : a Flash object, that can also be used to add interactivity to the website.
- `Comment` : a comment of the author, that will not be displayed on the website. Very useful for instance to mark parts to develop or correct at the time of writing.
- `Code` : a block of computer code whose formatting must be preserved.
- `Exercise` : an exercise (see later).
- `Quiz` : a quiz (see later).
- `Bibliography` : a list of bibliographic and webographic references.