Sometimes, it is convenient to split an element into two elements of the same type. A good example is the para element in our document: After entering some text in a paragraph, you may decide that the paragraph has become too long and that part of the content should be moved into a new paragraph element.
In a situation like this, you will split the paragraph into two at an appropriate place within the paragraph.
Follow these steps to split an element:
Splitting an element
Place the insertion cursor at the location at which you want to split the element.
Click on button or select -> from the main menu.
The current element will be split into two: The end tag of the current element will appear at the location of the insertion cursor, followed by the start tag of the new element. The content to the right of the insertion cursor becomes the content of the new element and the insertion cursor is placed after the start tag of the new element.
If you split an element, the attribute values of the current element will be propagated to the new element, if possible. Attributes with a declared value of ID must be unique within a document and cannot be passed on to the new element. Therefore, ID-attributes will not be copied to the new element and the value of the ID attribute in the new element will be undefined.
Splitting an element can be convenient if you need a sequence of elements with the same type because it is usually faster than inserting a new element with the element manager.