Internal tag - Hints

While writing an exercise, we can add hints for it using <hints> tag.

Example

<codeblock language="html" type="exercise" testMode="fixedInput">
<code>
<table>
  <tr>
    <td>Boxing</td>
    <td>Gloves</td>
  </tr>
  <tr>
    <td>Archery</td>
    <td>Arrow</td>
  </tr>
</table>
</code>

<hints>
<hint>
<table>
  <tr>
    <th>Title</th>
    <th>Details</th>
  </tr>
  <tr>
    <td>First Title</td>
    <td>Details for the first one</td>
  </tr>
  <tr>
    <td>Second Title</td>
    <td>Details for the second one</td>
  </tr>
</table>
</hint>
</hints>
</codeblock>

The above code will render Hints option to the user.

Rendered hint to user

We can add multiple hint inside the <hints> tag

Can't find what you're looking for?