![]() |
The commands on the Types menu and the corresponding
buttons enable you to create new elements at the insertion point within the
document <body>
. To use the commands from the
Types menu, place the cursor at the desired position and
choose the element type from the menu.
When creating new elements, it is important to select an insertion point, not some text nor a single character. If the current selection is not empty, Amaya tries to transform the selected part into the chosen element type.
Sometimes elements cannot be created at the selected location because of
the constraints imposed by the HTML DTD. Amaya then tries to create the
element at the closest position. For example, if the insertion point is at
the end of the last line of a paragraph when you click the Heading 2 button
, Amaya creates the new heading
after the paragraph.
In other cases, Amaya changes the existing structure for creating the
desired element. If the insertion point is somewhere within a list item
(LI
) when you create a second level heading, the list item and
its enclosing list are automatically split in order to create the requested
heading at the chosen position and to comply with the HTML DTD.