The JavaScript code: Note: The bordersOn class is set to turn on borders for td elements. document.writeln(''); document.writeln(' '); document.writeln(' '); document.writeln(' Name'); document.writeln(' Fave Color'); document.writeln(' '); document.writeln(' '); document.writeln(' '); document.writeln(' '); document.writeln(' Bob'); document.writeln(' Blue'); document.writeln(' '); document.writeln(' '); document.writeln(' Sue'); document.writeln(' Red'); document.writeln(' '); document.writeln(' '); document.writeln('');