Build a question web from the text
HTML for this example
Select the code and use your copy shortcut. Changes in this preview are temporary.
<!doctype html><html lang="en-US"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Build a question web from the text</title><style>*{box-sizing:border-box}:root{--ink:#26353e;--muted:#526771;--accent:#285f77;--line:#d0dade;--soft:#edf3f5;color-scheme:light}body{margin:0;background:#f2f5f5;color:var(--ink);font:16px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif}main{max-width:1120px;margin:auto;padding:28px 32px 64px}header{margin-bottom:20px}h1{font-size:clamp(1.5rem,3vw,2.1rem);line-height:1.2;letter-spacing:-.035em;margin:0 0 8px}header p{margin:0}h2{font-size:1.2rem;line-height:1.3;margin:0 0 16px}h3{font-size:1rem;margin:0 0 8px}p{margin:9px 0 16px}.panel{background:white;border:1px solid var(--line);border-radius:10px;padding:24px}.grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px}.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.below{margin-top:24px}.muted,small{color:var(--muted)}.big{font-size:clamp(2rem,5vw,3.6rem);font-weight:750;line-height:1.14;letter-spacing:-.04em;margin:9px 0;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.subresult{font-size:1.2rem;font-weight:700}.formula{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;overflow-wrap:anywhere}label{display:block;font-size:.9rem;font-weight:650}input,select,textarea,button{font:inherit}input,select,textarea{display:block;width:100%;min-width:0;margin-top:6px;padding:10px 12px;border:1px solid #879da8;border-radius:6px;background:white;color:var(--ink)}input,select{min-height:46px}textarea{line-height:1.6;resize:vertical}button{min-height:44px;padding:9px 15px;border:1px solid var(--accent);border-radius:6px;background:var(--accent);color:white;font-weight:650;cursor:pointer}button.secondary{background:white;color:var(--accent)}button:disabled{opacity:.5;cursor:not-allowed}:focus-visible{outline:3px solid #bf6a22;outline-offset:3px}.actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}.check{display:flex;align-items:flex-start;gap:10px;font-weight:500}.check input{width:20px;height:20px;min-height:20px;margin:2px 0 0;flex:none;accent-color:var(--accent)}.badge{display:inline-block;background:var(--soft);color:var(--accent);font-size:.78rem;font-weight:700;padding:4px 9px;border-radius:24px}.error{min-height:24px;color:#a52f29;font-weight:650;margin:8px 0 0}.status{font-size:.88rem;color:var(--muted)}.note{background:#fff3de;border-left:3px solid #b47e3d;padding:12px 16px;color:#63491f}.rule{border-top:1px solid var(--line);margin:18px 0}table{border-collapse:collapse;width:100%;font-size:.92rem}th{font-size:.82rem;color:var(--muted);text-align:left}th,td{border-bottom:1px solid var(--line);padding:10px 8px;vertical-align:top}th:first-child,td:first-child{padding-left:0}details{border-top:1px solid var(--line);padding:16px 0}summary{font-weight:650;cursor:pointer}svg{display:block;width:100%;height:auto}figure{margin:0}figcaption{font-size:.84rem;color:var(--muted);margin-top:10px}pre{white-space:pre-wrap;overflow-wrap:anywhere;font:.86rem/1.6 ui-monospace,Consolas,monospace;background:#eaf0f3;border-radius:6px;padding:18px}ol{padding-left:24px}li{margin:7px 0}[hidden]{display:none!important}@media(max-width:720px){main{padding:22px 20px 44px}.grid{grid-template-columns:1fr;gap:18px}.panel{padding:20px}}@media(max-width:400px){main{padding:18px 16px 36px}.panel{padding:16px}.big{font-size:2.3rem}.fields{gap:12px}th,td{padding:8px 5px}}@media print{body{background:white}main{padding:0;max-width:none}.actions,button{display:none}.panel{break-inside:avoid}details>*{display:block}}:root{--accent:#526a71}body{background:#f2f3ef}.passage{background:#fffdf6;border:1px solid #d5cfbc;border-left:5px solid #a08e5d;padding:24px}.sentence{padding:10px 12px;margin:4px 0;border:1px solid transparent}.sentence b{display:inline-block;min-width:32px;color:#7e7045;font-size:.85rem}.sentence.cited{background:#fbefc9;border-color:#d7bc6e}.question-workbench{background:white;padding:24px;border:1px solid var(--line);border-radius:10px}.web-result{display:grid;grid-template-columns:1fr 2fr;gap:20px;border-left:3px solid #72969a;padding-left:20px}.web-result span{display:block;font-size:.83rem;color:var(--muted);margin-bottom:6px}.web-result b{font-size:1.1rem}.web-result p{margin:5px 0}.lesson li{border-top:1px solid var(--line);padding:12px 0}.lesson p{margin:5px 0 0}#learnerWeb p{overflow-wrap:anywhere;line-height:2}@media(max-width:600px){.passage,.question-workbench{padding:18px}.web-result{grid-template-columns:1fr;gap:14px}}</style></head><body><main><header><h1>Build a question web from the text</h1><p>A 25-minute teacher-guided plan: model a question, cite evidence, and preserve what remains unknown.</p></header>
<section class="passage"><h2>Original fictional passage</h2><p id="S1" class="sentence"><b>S1</b> Jules set a paper boat in a shallow tray.</p><p id="S2" class="sentence"><b>S2</b> When Jules poured water into the tray, the boat floated toward the corner.</p><p id="S3" class="sentence"><b>S3</b> Jules placed a small block at that corner, and the boat stopped beside it.</p></section>
<section class="question-workbench below"><div class="fields"><label for="view">Reading copy<select id="view"><option value="teacher">Teacher model web</option><option value="learner">Blank learner web</option></select></label><div id="modelControl"><label for="question">Trace a model question<select id="question"><option value="Q1">Q1 · Where was the boat first placed?</option><option value="Q2">Q2 · What happened after water was poured?</option><option value="Q3">Q3 · Why might the block be at the corner?</option><option value="Q4">Q4 · Will the boat still float tomorrow?</option></select></label></div></div><div id="teacherWeb" class="below" aria-live="polite"><h2 id="questionText"></h2><div class="web-result"><div><span>Sentence evidence</span><b id="evidence"></b></div><div><span>Answer / category</span><b id="category"></b><p id="answer"></p></div></div><p id="limit" class="note"></p></div><div id="learnerWeb" class="below" hidden><h2>My question web · blank learner copy</h2><p>Question: __________________________________________________</p><p>Sentence evidence: ___________________________________________</p><p>Answer / stated, inferred, or unanswered: _______________________</p><p>Remaining question: __________________________________________</p><p class="status">Teacher reviews open responses and defensible alternative inferences. No answer is prefilled.</p></div></section>
<section class="panel below"><h2>25-minute teaching sequence</h2><ol class="lesson"><li><b>3 min · Text and goal</b><p>Read S1–S3 with teacher-confirmed access support; explain question construction and evidence.</p></li><li><b>5 min · Think-aloud</b><p>Model Q1 → S1 → shallow tray. Contrast a stated answer with a possible inference.</p></li><li><b>8 min · Read and question</b><p>Learners compose their own question, with confirmed support. Keep actual questions open.</p></li><li><b>6 min · Evidence review</b><p>Ask what each question asks, which sentence helps, what it establishes, and what remains unknown.</p></li><li><b>3 min · Exit</b><p>Identify one question, its evidence or absence of evidence, and one remaining question.</p></li></ol></section>
<details class="below"><summary>Blank actual observation and next-step record</summary><p>Actual learner question / evidence / explanation: ____________________</p><p>Discussion and support used: ____________________</p><p>Next teaching step and reason: ____________________</p><p>Actual teaching, reading level, speed, and outcomes are not recorded. A view switch creates no learner work. Keep actual observations in the approved school workflow; this page neither grades nor collects student data or saves edits.</p></details></main><script>const $=id=>document.getElementById(id),put=(id,s)=>{$(id).textContent=s};
function esc(s){return String(s).replace(/[&<>"']/g,c=>({'&':'&','<':'<','>':'>','"':'"',"'":'''}[c]));}
function gcd(a,b){a=a<0n?-a:a;b=b<0n?-b:b;while(b){[a,b]=[b,a%b]}return a||1n;}
function R(n,d=1n){n=BigInt(n);d=BigInt(d);if(d===0n)throw Error('Undefined denominator.');if(d<0n){n=-n;d=-d}const g=gcd(n,d);return {n:n/g,d:d/g};}
function mul(a,b){return R(a.n*b.n,a.d*b.d)}function div(a,b){return R(a.n*b.d,a.d*b.n)}function add(a,b){return R(a.n*b.d+b.n*a.d,a.d*b.d)}function sub(a,b){return R(a.n*b.d-b.n*a.d,a.d*b.d)}function cmp(a,b){const x=a.n*b.d-b.n*a.d;return x<0n?-1:x>0n?1:0}
function parse(s,{max=1000000,positive=false,places=6}={}){const t=String(s).trim();if(!t)throw Error('Enter a value; blank is not zero.');const re=new RegExp('^[0-9]+(?:\.[0-9]{1,'+places+'})?$');if(!re.test(t))throw Error('Use digits and a US decimal point, up to '+places+' places; no signs, commas, or exponents.');const v=Number(t);if(!Number.isFinite(v)||v>max||(positive&&v===0))throw Error('Value must be '+(positive?'greater than zero':'nonnegative')+' and at most '+max+'.');const [a,b='']=t.split('.');return R(BigInt(a+b),10n**BigInt(b.length));}
function format(a,places=6){const neg=a.n<0n,n=neg?-a.n:a.n,scale=10n**BigInt(places),v=n*scale,q=v/a.d,rem=v%a.d,k=q+(rem*2n>=a.d?1n:0n);const f=(k%scale).toString().padStart(places,'0').replace(/0+$/,'');return {text:(neg&&k!==0n?'-':'')+(k/scale)+(f?'.'+f:''),approx:rem!==0n};}
function exact(a){let d=a.d;while(d%2n===0n)d/=2n;while(d%5n===0n)d/=5n;if(d!==1n)return a.n+'/'+a.d;let places=0,p=1n;while(p%a.d!==0n&&places<40){p*=10n;places++}return format(a,places).text;}
function display(a,places=6){if(a.n>0n&&cmp(a,R(1n,10n**BigInt(places)))<0)return '< '+format(R(1n,10n**BigInt(places)),places).text;const f=format(a,places);return (f.approx?'≈ ':'')+f.text;}
function listen(ids,fn){ids.forEach(id=>{ $(id).addEventListener('input',fn);$(id).addEventListener('change',fn); });}
const questions={Q1:{question:'Where was the boat first placed?',ids:['S1'],category:'Stated',answer:'In a shallow tray.',limit:'S1 states the location directly.'},Q2:{question:'What happened after water was poured?',ids:['S2'],category:'Stated',answer:'The boat floated toward the corner.',limit:'S2 states this event; no later outcome is inferred.'},Q3:{question:'Why might the block have been placed at the corner?',ids:['S2','S3'],category:'Possible inference',answer:'Perhaps to stop the approaching boat.',limit:'The sequence supports a possible explanation, not a stated motive. Other defensible interpretations need an explicit evidence link.'},Q4:{question:'Will the boat still float tomorrow?',ids:[],category:'Unanswered by this text',answer:'The passage does not establish tomorrow’s condition or outcome.',limit:'Do not invent a later event, material test, or prediction as the text’s answer.'}};
function model(id){if(!Object.hasOwn(questions,id))throw Error('Unknown model question.');return questions[id];}
function update(){const teacher=$('view').value==='teacher';$('teacherWeb').hidden=!teacher;$('learnerWeb').hidden=teacher;$('modelControl').hidden=!teacher;const q=model($('question').value);['S1','S2','S3'].forEach(id=>$(id).setAttribute('class',teacher&&q.ids.includes(id)?'sentence cited':'sentence'));put('questionText',q.question);put('evidence',q.ids.length?q.ids.join(' + '):'No supporting sentence');put('category',q.category);put('answer',q.answer);put('limit',q.limit);}
listen(['view','question'],update);globalThis.Tool={model,update};update();</script></body></html>