Showing HTML tags in quiz questions about HTML

Showing HTML tags in quiz questions about HTML

by Len Schoof -
Number of replies: 4
I am trying to create a quiz about HTML tags. Unfortunately, the code doesn't show. Can someone tell me how to overcome this problem?
Eg In the question,

"What is the correct HTML tag for inserting a line break?"
A) <li>
B) <br>
C) <lb>
D) <break>

the choices are not visible. I presume moodle is looking at them as code. The attachment shows how it appears in preview.
Thanks
Len
Attachment Dump.jpg
Average of ratings: -
In reply to Len Schoof

Re: Showing HTML tags in quiz questions about HTML

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
It is a feature that you can type XHTML into mutiple choice answers, and use it to apply formatting. Therefore you need to enter &lt;br>, etc.
In reply to Tim Hunt

Re: Showing HTML tags in quiz questions about HTML

by Louis Fleming -
Running into the same problem here - is there some source to show what to enter for the various HTML commands as I have hit a few by trial and error.
In reply to Tim Hunt

Re: Showing HTML tags in quiz questions about HTML

by Len Schoof -
Thanks, Tim.
Just what i was looking for.
Len