ok so here is my thing. when i try to validate it i get so many errors saying that all the radio buttons get: reference to non-existent ID "a5". or something like that. also my <li> and <ol> and <ul> tags are wrong apperently. but if some1 could look through this and tell me what my problems are thank that person.
ps. ya this includes javascript. and if there are any problems with it then plz tell me those!!
(o and ya i kno that the first couple of javascript if(document.capitals.XX) r not matching.
ok here it is:
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>The Big Project Thing</title>
<script type= "text/javascript">
function calc()
{
correct = 0;
if(document.capitals.a1[0].checked)
++correct;
if(document.capitals.a1[1].checked)
++correct;
if(document.capitals.a1[3].checked)
++correct;
if(document.capitals.a2[0].checked)
++correct;
if(document.capitals.a2[1].checked)
++correct;
if(document.capitals.a2[3].checked)
++correct;
if(document.capitals.a3[0].checked)
++correct;
if(document.capitals.a3[1].checked)
++correct;
if(document.capitals.a3[3].checked)
++correct;
if(document.capitals.a4[0].checked)
++correct;
if(document.capitals.a4[1].checked)
++correct;
if(document.capitals.a4[3].checked)
++correct;
if(document.capitals.a5[0].checked)
++correct;
if(document.capitals.a5[1].checked)
++correct;
if(document.capitals.a5[3].checked)
++correct;
if(document.capitals.a6[0].checked)
++correct;
if(document.capitals.a6[1].checked)
++correct;
if(document.capitals.a6[3].checked)
++correct;
if(document.capitals.a7[0].checked)
++correct;
if(document.capitals.a7[1].checked)
++correct;
if(document.capitals.a7[3].checked)
++correct;
if(document.capitals.a8[0].checked)
++correct;
if(document.capitals.a8[1].checked)
++correct;
if(document.capitals.a8[3].checked)
++correct;
if(document.capitals.a9[0].checked)
++correct;
if(document.capitals.a9[1].checked)
++correct;
if(document.capitals.a9[3].checked)
++correct;
if(document.capitals.a10[0].checked)
++correct;
if(document.capitals.a10[1].checked)
++correct;
if(document.capitals.a10[3].checked)
++correct;
alert ('you answered ' + correct + ' questions incorrectly.');
}
</script>
<style type="text/css">
<!--
h2 {text-align: center; color: white; font-family: "Trajan Pro";}
h3 {color: white;}
label {color: white;}
u {color: white;}
ol {color: white; font-family: "Plantagenet Cherokee";}
p {color: white; font-family: "Plantagenet Cherokee"; font-size: 18px; }
ul {color: white; font-family: "Plantagenet Cherokee";}
body {background-image:url("http://i324.photobucket.com/albums/k346/heyjay77/bannerbluestripes1024x900copy.jpg");
background-position: left top;
background-repeat:repeat;}
body { background-image:url(http://i324.photobucket.com/albums/k346/heyjay77/bannerbluestripes1024x900copy.jpg); background-attachment:fixed; width:1000px;align:right; style="position:absolute; top:0px; left:0px; height:135px; width:152px;background-image:url(http://i324.photobucket.com/albums/k346/heyjay77/bannerbluestripes1024x900copy.jpg); background-repeat:no-repeat;}
-->
</style>
</head>
<body>
<!--
QUESTION SET #1 Internet Safety
-->
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<p>
Below is a questionnaire about three internet topics (and an extra question), the topics range from Internet Safety, Evaluating a Webpage, and Searching the Internet. After you choose an option from each multiple choice question, it will alert you if the answer was correct or incorrect. If it is correct, good job and move on to the next quesiton, if incorrect, try another option.
Here is an overview of each topic:
<ul>
<li>Internet Safety: Questions that relate to strangers on the internet and password and identity safety.
<li>Evaluating a Website: What things to look for on a website.
<li>Searching on the Internet: Things about Boolean searching, and other search related questions.
</ul>
</p>
<br />
<br />
<br />
<br />
<br />
<br />
<h2><u>Internet Questionare</u></h2>
<h4>Internet Safety</h4>
<form name = "capitals" action = "">
<ol>
<li><u>If a stranger contacts you and asks you to visit them, What do you do?:</u></li>
<br />
<br />
<input type = "radio" name = "a1.1" value = "0"
onclick = "alert('TRY AGAIN')" /><label for="a1.1">Go to strangers house.</label>
<br /> <br/>
<input type = "radio" name = "a1.2" value = "2"
onclick = "alert('TRY AGAIN')" /><label for="a1.2">Ignore it and do whatever you were doing.</label>
<br /> <br/>
<input type = "radio" name = "a1.3" value = "1"
onclick = "alert('CORRECT!')" /><label for="a1.3">Tell your parents, and contact the hotline.</label>
<br /> <br/>
<input type = "radio" name = "a1.4" value = "3"
onclick = "alert('TRY AGAIN')" /><label for="a1.4">Tell a random stranger on the street, you met while you were going to the other stranger's house.</label>
<br /> <br/>
<li><u>If somebody asks for your password<a href ="http://pbskids.org/license/passwords.html"></a> you:</u>
<br /> <br />
<input type = "radio" name = "a2" value = "0"
onclick = "alert('TRY AGAIN')" /><label for="a2">Give them your password with a smile and not think about it.</label>
<br /> <br/>
<input type = "radio" name = "a2" value = "1"
onclick = "alert('TRY AGAIN')" /><label for="a2">Do not give them your password.</label>
<br /> <br/>
<input type = "radio" name = "a2" value = "2"
onclick = "alert('CORRECT!')" /><label for="a2">Ask why and then give them your password</label>
<br /> <br/>
<input type = "radio" name = "a2" value = "3"
onclick = "alert('TRY AGAIN')" /><label for="a2">Run away and call the police.</label>
<br /> <br/>
<li><u>What information should you give out online?<a href ="http://pbskids.org/license/besafe.html"></a>:</u>
<br /> <br />
<input type = "radio" name = "a3" value = "0"
onclick = "alert('TRY AGAIN')" /><label for="a3">Everything the website asks for.</label>
<br /> <br/>
<input type = "radio" name = "a3" value = "1"
onclick = "alert('TRY AGAIN')" /><label for="a3">None.</label>
<br /> <br/>
<input type = "radio" name = "a3" value = "2"
onclick = "alert('CORRECT!')" /><label for="a3">Your name, and age.</label>
<br /> <br/>
<input type = "radio" name = "a3" value = "3"
onclick = "alert('TRY AGAIN')" /><label for="a3">Contact information.</label>
<br /> <br/>
<!--
QUESTION SET #2 Evaulating Internet.
-->
<h4>Evaluating a Website</h4>
<li><u>What things do you look for when you are evaluating a website?</u>
<br /> <br /> <!-- Set Number 1 -->
<input type = "radio" name = "a4" value = "0"
onclick = "alert('TRY AGAIN')" /><label for="a4">Who made the website?</label>
<br /> <br/>
<input type = "radio" name = "a4" value = "1"
onclick = "alert('TRY AGAIN')" /><label for="a4">What is the extension: .com, .org, .gov?</label>
<br /> <br/>
<input type = "radio" name = "a4" value = "3"
onclick = "alert('CORRECT!')" /><label for="a4">All of the above?</label>
<br /> <br/>
<input type = "radio" name = "a4" value = "2"
onclick = "alert('TRY AGAIN')" /><label for="a4">When was it last updated?</label>
<br /> <br/> <!-- Set Number 2 -->
<li><u>Does a website with an extension of .org, does it mean it is official?</u>
<br /><br />
<input type = "radio" name = "a5" value = "0"
onclick = "alert('TRY AGAIN')" /><label for="a5">Always</label>
<br /> <br/>
<input type = "radio" name = "a5" value = "1"
onclick = "alert('TRY AGAIN')" /><label for="a5">Never</label>
<br /> <br/>
<input type = "radio" name = "a5" value = "2"
onclick = "alert('CORRECT!')" /><label for="a5">Likely</label>
<br /> <br/>
<input type = "radio" name = "a5" value = "3"
onclick = "alert('TRY AGAIN')" /><label for="a5">Rarely</label>
<br /> <br /> <!-- Set Number 3 -->
<li><u>If it says .gov what does it mean?</u>
<br /><br />
<input type = "radio" name = "a6" value = "0"
onclick = "alert('TRY AGAIN')" /><label for="a6">It tracks everything you do, and the government can spy on every single thing.</label>
<br /> <br/>
<input type = "radio" name = "a6" value = "1"
onclick = "alert('TRY AGAIN')" /><label for="a6">That it is likely fraudulent.</label>
<br /> <br/>
<input type = "radio" name = "a6" value = "2"
onclick = "alert('CORRECT!')" /><label for="a6">That it is a government website and a trusted resource.</label>
<br /> <br/>
<input type = "radio" name = "a6" value = "3"
onclick = "alert('TRY AGAIN')" /><label for="a6">That it’s a commercial website.</label>
<!--
QUESTION SET #3 Searching the Web
-->
<h4>Searching the Internet</h4>
<li><u>Boolean Searching Keyword(s) are:</u>
<br /> <br /> <!-- Set Number 1 -->
<input type = "radio" name = "a7" value = "0"
onclick = "alert('TRY AGAIN')" /><label for="a7">AND, BUT, NOT, OR</label>
<br /> <br/>
<input type = "radio" name = "a7" value = "1"
onclick = "alert('TRY AGAIN')" /><label for="a7">NEVER, ALWAYS</label>
<br /> <br/>
<input type = "radio" name = "a7" value = "3"
onclick = "alert('CORRECT!')" /><label for="a7">BOOLEAN</label>
<br /> <br/>
<input type = "radio" name = "a7" value = "2"
onclick = "alert('TRY AGAIN')" /><label for="a7">OR, AND, BUT</label>
<br /> <br/> <!-- Set Number 2 -->
<li><u>Boolean Searching is used to:</u>
<br /><br />
<input type = "radio" name = "a8" value = "0"
onclick = "alert('TRY AGAIN')" /><label for="a8">Limit your results</label>
<br /> <br/>
<input type = "radio" name = "a8" value = "1"
onclick = "alert('TRY AGAIN')" /><label for="a8">Greaten your results</label>
<br /> <br/>
<input type = "radio" name = "a8" value = "2"
onclick = "alert('CORRECT!')" /><label for="a8">Limit or greaten your results</label>
<br /> <br/>
<input type = "radio" name = "a8" value = "3"
onclick = "alert('TRY AGAIN')" /><label for="a8">Search for things about Boolean</label>
<br /> <br /> <!-- Set Number 3 -->
<li><u>Are all search engines the same?:</u>
<br /><br />
<input type = "radio" name = "a9" value = "0"
onclick = "alert('TRY AGAIN')" /><label for="a9">Yes</label>
<br /> <br/>
<input type = "radio" name = "a9" value = "1"
onclick = "alert('TRY AGAIN')" /><label for="a9">No</label>
<br /> <br/>
<input type = "radio" name = "a9" value = "2"
onclick = "alert('CORRECT!')" /><label for="a9">Some are specific categories</label>
<br /> <br/>
<input type = "radio" name = "a9" value = "3"
onclick = "alert('TRY AGAIN')" /><label for="a9">What’s a search engine?</label>
</ol>
<p>Good job, hopefully you've learned something about the above topics, and your better at searching the internet, evaluating webpages, and being safer online.</p>
<h3>Made by Me</h3>
<input type = "button" name = "check" value = "CHECK ANSWERS"
onclick = "calc();"/>
<input type = "reset" name = "reset" value = "CLEAR ANSWERS" />
</form>
</body>
</html>
