1 2

advertisement
SI110 Homework Alpha: ________ Name: ____________________
Page 1 of 2
Collaboration Policy: Default
MIDN Last, F.
choose one: □ None □ XS110 □ EI with:
(or more)
□ MGSP
□ Discussed with: ____________________________
Homework: /SI110/Cyber Battlefield/Client Side – Event Driven & Forms
1. Consider the following HTML:
<HTML>
<HEAD></HEAD>
<BODY>
<P>
<I>cyber security</I> ( <A
href="http://www.dtic.mil/whs/directives/corres/pdf/850001_2014.pdf">
DoDINST 8500.01</A> ): Prevention of damage to, <SPAN id="critMission"
style="color:#FF0000;">protection of</SPAN>, and restoration of
computers, electronic communications systems, electronic
communications services, wire communication, and electronic
communication, including information contained therein, to ensure its
<B> C </B> onfidentiality, <B> I </B> ntegrity, <B> A </B>
vailability, <B> N </B> on-repudiation, <B> A </B> uthentication.
</P>
</BODY>
</HTML>
a. [10 / 8 / 5 / 0] Underline the entire HTML Anchor (A) Element.
b. [10 / 8 / 5 / 0] What attribute(s) are defined for the HTML Span Element?
c. [10 / 8 / 5 / 0] Circle the start tag of the last bold element, separately circle the end tag of
the last bold element.
d. [10 / 8 / 5 / 0] What is the value of the following JavaScript statement:
document.getElementById("critMission").innerHTML; ?
2. Follow the directions on this page:
http://rona.academy.usna.edu/~si110/lec/wwwClntEvent/hw/target.html
a. [10 / 8 / 5 / 0] Describe what happened:
b. [10 / 8 / 5 / 0] Continuing, examine the page source (if using Chrome, right-click View
page source). You probably won't understand everything in this file, but use what you do know
to figure out the following: What kind of user action does the page respond to?
SI110 Homework
Collaboration Policy: Default
Page
3. Consider the below HTML file.
<HTML>
<HEAD></HEAD>
<BODY>
<SCRIPT type="text/javascript">
document.write("\"Gentlemen, you can't ");</SCRIPT>
fight in here! <P> This is the War
<SCRIPT type="text/javascript"> document.write("Room!\"");
</SCRIPT>
</P>
</BODY>
</HTML>
a. [15 / 10 / 5 / 0] Draw how a browser would render the source code.
b. [15 / 10 / 5 / 0] Modify the source code so that only the word War is italicized.
4. [ 10 / 8 / 5 / 0 ] Consider the below source code from an HTML file.
<HTML>
<HEAD></HEAD>
<BODY>
<FORM name="bio">
<P>
Last Name <INPUT type="text" name="last" value="Doe">
</P>
<P>
Age in Years <INPUT type="text" name="age" value="19">
</P>
</FORM>
</BODY>
</HTML>
Circle which of the following makes the second text input box have the value 95.
a. document.forms.text.age.value = "95";
b. document.getElementById("age").value = '95';
c. document.forms.bio.age = '95';
d. document.forms.bio.age.value = "95"
2 of 2
Download