The titledbox supports a label which is placed along the top part of the border. Because titledboxes are types of boxes, you can use the same attributes such as orient and autostretch . You can put whatever elements you want inside the box, although typically they will be related in some way. The label across the top of the titledbox can be created by using the label element. It works much like the HTML legend element.
Any labels placed directly inside the titledbox element become part of the caption on the titledbox.
Usually, a single label element placed as the first child is sufficient. This will cause four pieces of text to be displayed surrounded by a box with the label Answer. Note that the titledbox has a vertical orientation which is necesssary to have the text elements stack in a single column. You might wonder why the HTML fieldset element cannot be used. You can use it if you wish, however, since it is an HTML element, the placement and size of the element will be controlled by HTML layout rules.