From WeBWorK
Revision as of 11:27, 17 June 2008 by Gage (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

<html><style type="text/css"> label {margin-right:1em} </style> <form action="#">

   <label for="context">Context</label>
   <select id="context" name="context">
     <option value="numeric">Numeric</option>
     <option value="vector">Vector</option>
   <textarea rows="5" cols="80">$a = random(1,6);

$b = random(1,6); $answer = $a + $b; </textarea>

   <legend>Text of problem</legend>
   <textarea rows="10" cols="80">What is the sum of \($a\) and \($b\)? $BR

\{ans_rule(10)\} </textarea>

   <label for="answer1">Answer 1</label><input type="text" id="answer1" name="answer1" value="$answer"/>

<input type="button" value="Save" ></input><input type="button" value="Preview">

</form> </html>

follow us