Difference between revisions of "SimplifiedEntryExample1"

From WeBWorK_wiki
Jump to navigation Jump to search
Line 1: Line 1:
<nowiki><style type="text/css">
+
<html><style type="text/css">
 
label {margin-right:1em}
 
label {margin-right:1em}
 
</style>
 
</style>
Line 30: Line 30:
 
<p><input type="button" value="Save" ></input><input type="button" value="Preview"></p>
 
<p><input type="button" value="Save" ></input><input type="button" value="Preview"></p>
 
</form>
 
</form>
</nowiki>
+
</html>

Revision as of 11:27, 17 June 2008

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

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

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

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

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

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

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

</form> </html>