# HTML/Java people

**URL:** <https://forums.speedlife.net/t/html-java-people/174206>\
**Category:** PittSpeed Off Topic\
**Created:** [May 10, 2005, 10:23am UTC](https://forums.speedlife.net/t/html-java-people/174206 "2005-05-10T10:23:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![BlkP42E](https://yyz2.discourse-cdn.com/flex034/user_avatar/forums.speedlife.net/blkp42e/32/5938_2.png) [@BlkP42E](https://forums.speedlife.net/u/BlkP42E)\
**Post date:** [May 10, 2005, 10:23am UTC](https://forums.speedlife.net/t/html-java-people/174206/1 "2005-05-10T10:23:36Z")

</div>

Im messing around with my textbooks to sharpen up my skills. i was doing the tutorials, but i cant seem to get this script to prompt. any ideas?

\<!DOCTYPE html PUBLIC “-//w3c//DTD XHTML 1.0 Strict//EN”  
“[http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd](http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd)”\>

\<!-- borders.html  
an example of a switch statement for table border size selection  
–\>

\<html\>  
\<head\>  
\<title\> A Switch Statement \</title\>  
\</head\>  
\<body\>  
\<script type = “text/javascript”\>  
\<!–  
var bordersize;  
bordersize = prompt("Select a table border size  
" +  
"0 (0 pixel border)  
" +  
"1 (1 pixel border)  
" +  
"4 (4 pixel border)  
" +  
"8 (8 pixel border)  
");

switch (bordersize) {  
case “0”: document.write("\<table\>");  
break;  
case “1”: document.write("\<table border = ‘1’\>");  
break;  
case “4”: document.write("\<table border = ‘4’\>");  
break;  
case “8”: document.write("\<table border = ‘8’\>");  
break;  
default: document.write("Error - Invalid choice: ",  
bordersize, “\<br /\>”);  
}

document.write("\<caption\> 2001 NFL Divisional Winners \</caption\>");  
document.write("\<tr\>"  
“\<th /\>”,  
“\<th\> American Conference \</th\>”,  
“\<th\> National Conference \</th\>”,  
“\</tr\>”,  
“\<tr\>”,  
“\<th\> East \</th\>”,  
“\<td\> New England Patriots \</td\>”,  
“\<td\> Philiadelphia Eagles \</td\>”,  
“\</tr\>”,  
“\<tr\>”,  
“\<th\> Central \</th\>”,  
“\<td\> Pittsburgh Steelers \</td\>”,  
“\<td\> Chicago Bears \</td\>”,  
“\</tr\>”,  
“\<tr\>”,  
“\<th\> West \</th\>”,  
“\<td\> Oakland Raiders \</td\>”,  
“\<td\> St. Louis Cardinals \</td\>”,  
“\</tr\>”,  
“\</table\>”);  
// --\>  
\</script\>  
\</body\>  
\</html\>

---

<div class="post-metadata">

**Author:** ![BlkP42E](https://yyz2.discourse-cdn.com/flex034/user_avatar/forums.speedlife.net/blkp42e/32/5938_2.png) [@BlkP42E](https://forums.speedlife.net/u/BlkP42E)\
**Post date:** [May 10, 2005, 10:27am UTC](https://forums.speedlife.net/t/html-java-people/174206/2 "2005-05-10T10:27:09Z")

</div>

nevermind. i was missing 1 comma at the end of this line…

document.write("\<caption\> 2001 NFL Divisional Winners \</caption\>");  
document.write("\<tr\>" **,**
