Skip to content

Commit de41b79

Browse files
Merge pull request #425 from ossf/pre_code1
Labs: Try combining pre with code
2 parents f73b2f6 + bfff7c6 commit de41b79

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

docs/labs/csp1.html

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -384,14 +384,15 @@ <h2>Task Information</h2>
384384
<h2>Interactive Lab (<span id="grade"></span>)</h2>
385385
<p>
386386
<form id="lab">
387-
<pre>
387+
<pre><code>
388388
const express = require("express");
389-
<input id="attempt0" type="text" size="70" value="const">
389+
<input id="attempt0" type="text" size="70" spellcheck="false"
390+
value="const">
390391

391392
const app = express();
392393

393394
// Use Helmet to insert hardening headers
394-
<textarea id="attempt1" rows="10" cols="70">
395+
<textarea id="attempt1" rows="10" cols="70" spellcheck="false">
395396
app.use(
396397
);
397398
</textarea>
@@ -401,7 +402,7 @@ <h2>Interactive Lab (<span id="grade"></span>)</h2>
401402
});
402403

403404
app.listen(3000);
404-
</pre>
405+
</code></pre>
405406
<button type="button" id="hintButton">Hint</button>
406407
<button type="button" id="resetButton">Reset</button>
407408
<button type="button" id="giveUpButton">Give up</button>

0 commit comments

Comments
 (0)