How to create questions in Moodle

4.4Entering fractions with the combined question type

In a combined question it is possible to arrange two input boxes such that they look like the numerator and denominator in a fraction using the following HTML.

<div><span style="border-bottom: 1px solid black; padding-bottom: 4px;">[[2:numeric:__2__]]</span></div>

<div style="padding-top: 4px;">[[2a:numeric:__2__]]</div>