Guest User

Untitled

a guest
May 4th, 2010
2,108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.52 KB | None | 0 0
  1. Case 3 is only half done, dont forget to change the author and date
  2.  
  3.  
  4.  
  5. Tutorial 3 Review
  6. <html>
  7.  
  8. <head>
  9. <!--
  10. New Perspectives on HTML and XHTML 5th Edition
  11. Tutorial 3
  12. Review Assignment
  13.  
  14. Sunny Acres Holidays Page
  15. Author: Max Haddad
  16. Date: 22 April 2010
  17.  
  18. Filename: holiday.htm
  19. Supporting files: greenbar.jpg, holiday.jpg, salogo.jpg, sunny.css
  20. -->
  21. <link href="sunny.css" rel="stylesheet" type="text/css" />
  22. <title>Holidays at Sunny Acres</title>
  23. </head>
  24.  
  25. <body>
  26. <div id="outer">
  27.  
  28. <h1><img src="salogo.jpg" alt="Sunny Acres" /></h1>
  29. <div id="links">
  30. <a href="#">Home</a><br/>
  31. <a href="#">The Corn Maze</a><br/>
  32. <a href="#">The Haunted Maze</a><br/>
  33. <a href="#">Petting Barn</a><br/>
  34. <a href="#">Produce</a><br/>
  35. <a href="holiday.htm">Holidays on the Farm</a>
  36. </div>
  37.  
  38. <div id="inner">
  39. <h2>Holidays on the Farm</h2>
  40. <p id="photobox">
  41. <img src="holiday.jpg" alt="holiday photo" id="photo" width="250" height="250" /><br/>
  42. Saint Nick visits Sunny Acres in December
  43. </p>
  44. <p>
  45. This year Sunny Acres becomes Wintery Acres as we institute our first
  46. Holidays on the Farm. Join us on weekends from November 23
  47. through January 5 for holiday cheer and festivities.
  48. </p>
  49. <p>The Sunny Acres Farm Shop will be decked out in bright and colorful holiday
  50. decorations with special prices on garland, tinsel, ornaments, and wreaths.
  51. Be sure to sample our homemade egg nog and bring some home for your
  52. family.
  53. </p>
  54. <p>The trails and hills around Sunny Acres will be alive with fun and
  55. games. Come join us for sleigh rides or zoom down our awesome
  56. sledding hill (weather permitting). Sunny Acres is adjacent to
  57. Dawson Park which has a vast network of cross country ski trails
  58. for every level of skier.</p>
  59. <p>We've even decorated our barn for the holidays. Come visit Santa's
  60. stables where you might even see a few reindeer. Perhaps even one
  61. with a red nose!</p>
  62.  
  63. <h3>Hours</h3>
  64. <ul>
  65. <li>Saturdays: 10 am - 5 pm</li>
  66. <li>Sundays: 11 am - 3 pm</li>
  67. <li>Closed: December 25, 31, January 1</li>
  68. </ul>
  69.  
  70. <h3>Directions</h3>
  71. <ul>
  72. <li>From Council Bluffs, proceed east on I-80</li>
  73. <li>Take Exit 38 North to the Drake Frontage Road</li>
  74. <li>Turn right on Highway G</li>
  75. <li>Proceed east for 2.5 miles</li>
  76. <li>Sunny Acres is on your left; watch for the green sign</li>
  77. </ul>
  78.  
  79.  
  80. <address>
  81. Sunny Acres &nbsp;&#9728;&nbsp;
  82. Tammy &amp; Brent Nielsen &nbsp;&#9728;&nbsp;
  83. 1977 Highway G &nbsp;&#9728;&nbsp;
  84. Council Bluffs, IA &nbsp;&nbsp; 51503
  85. </address>
  86. </div>
  87. </div>
  88.  
  89. </body>
  90.  
  91. </html>
  92.  
  93. Tutorial 3 Review CSS
  94.  
  95. /*
  96. New Perspectives on HTML and XHTML 5th Edition
  97. Tutorial 3
  98. Review Assignment
  99.  
  100. Sunny Acres Holiday Festival Style Sheet
  101. Author: Max Haddad
  102. Date: 22 April 2010
  103.  
  104. Filename: sunny.css
  105. Supporting Files: greenbar.jpg
  106.  
  107. */
  108. #outer {margin: 0em 0em 0em 0em;
  109. font-family: arial, helvetica;
  110. background-color: white;
  111. background-image: url(greenbar.jpg);
  112. background-repeat: repeat-y;
  113. width: 770px
  114. }
  115.  
  116. h1 {border-bottom: 3px solid green;
  117. margin: 0em 0em 0em 0em}
  118.  
  119. h2 {background-color: green;
  120. font-color: white;
  121. padding: 5px;
  122. kerning: 7px
  123. }
  124.  
  125. h3 {background-color: green;
  126. color: white;
  127. padding: 5px;
  128. kerning: 7px;
  129. width: 200px
  130. }
  131.  
  132. address {font-size: 11px;
  133. color: green;
  134. text-align: center;
  135. padding-top: 5px;
  136. border-top: 3px solid green
  137. }
  138.  
  139.  
  140. #inner {margin-left: 225px;
  141. padding-left: 10px
  142. }
  143.  
  144. #photobox {float: right;
  145. text-align: center;
  146. font-size: 12px;
  147. font-style: italic;
  148. background-color: RGB(255, 215, 71);
  149. margin-top: 10px;
  150. margin-left: 10px;
  151. margin-bottom: 10px;
  152. margin-right: 0px;
  153. border-top: 1px solid black;
  154. border-left: 1px solid black;
  155. border-right: 4px solid black;
  156. border-bottom: 4px solid black;
  157. padding: .5em .5em .5em .5em;
  158. display: block}
  159.  
  160. #links {float: left}
  161.  
  162. a {text-decoration:none;
  163. display: block;
  164. width: 180px;
  165. margin: 5px 5px 5px 5px;
  166. padding: 5px;
  167. background-color: rgb(255, 215, 71);
  168. border-top: 1px solid black;
  169. border-left: 1px solid black;
  170. border-bottom: 3px solid black;
  171. border-right: 3px solid black}
  172.  
  173.  
  174. Tutorial 3 Case 1
  175.  
  176. <html>
  177. <head>
  178. <!--
  179. New Perspectives on HTML and XHTML
  180. Tutorial 3
  181. Case Problem 3
  182.  
  183. ICI Home Page
  184. Author: Max Haddad
  185. Date: 29 April 2010
  186.  
  187. Filename: crypt.htm
  188. Supporting files: back1.gif, back2.gif, locks.jpg, logo.gif, scytale.gif
  189. -->
  190.  
  191. <title>International Cryptographic Institute</title>
  192. </head>
  193.  
  194. <body style="background: black url(back1.gif) repeat-y scroll; margin: 0 10 0 100; color: white">
  195.  
  196. <p>
  197. <img src="logo.gif" alt="ICI" width="95" height="78" style="float: left; margin-left: -100px" />
  198. </p>
  199.  
  200. <h1 style="font-family: Courier New, monospace; font-size: 1.8em; letter-spacing: 0.3em;
  201. line-height: 0.7em; font-weight: bold; color: yellow; background-image: url(back2.gif);
  202. text-align: center">
  203. THE&nbsp;<br />
  204. SCIENCE<br />
  205. &nbsp;&nbsp;OF<br />
  206. CRYPTOGRAPHY
  207. </h1>
  208.  
  209. <h2 style="font-family: Arial, Helvetica, sans-serif">What is Cryptography?</h2>
  210.  
  211. <p style="text-indent: 2em"><b>Cryptography</b> is the science of secure communications,
  212. formed from the Greek words <i>krypt&#243;s</i> meaning "hidden" and <i>l&#243;gos</i>, meaning
  213. "word". The first recorded use of cryptography was by the Spartans who (as early as 400 BC)
  214. employed a cipher device called a "scytale" to send secret communications between military
  215. commanders. The scytale consisted of a tapered baton around which was wrapped a piece of parchment
  216. inscribed with the message. Once unwrapped the parchment appeared to contain an incomprehensible
  217. set of letters, however when wrapped around another baton of identical size the original text
  218. appears.
  219. <img src="scytale.gif" alt="" width="250" height="69" style="float: right" />
  220. </p>
  221.  
  222. <p style="text-indent: 2em">Cryptographers developed more and more ingenious systems,
  223. but it was in the 20<sup>th</sup>century, that the science of cryptography took off.
  224. The first major achievement was the the development of rotor cipher machines. An American,
  225. Edward Hebern recognised that by hardwiring alphabetic substitution in the connections from
  226. one side of an electrical rotor to those on the other side and cascading a collection of such
  227. rotors, alphabetic substitutions of almost any complexity could be produced. Germany engineers
  228. independently discovered the rotor concept and designed the precursors to the most famous
  229. cipher machine in history - the German Enigma machine which was used during World War 2. The
  230. cracking of the Enigma ciphers byBritish and Polish cryptanalysts during the Second World War
  231. is one of the greatest triumphs inthe history of cryptography and played an important role in
  232. the Allie victory.</p>
  233.  
  234. <hr style="color: yellow; background-color: yellow" />
  235.  
  236. <p style="text-align: center">To learn more cryptography, please tour the site. <br />
  237. <img src="locks.jpg" alt="" width="510" height="110" usemap="#locks" style="border-width: 0px" />
  238. <map name="locks" id="locks">
  239. <area shape="circle" coords="52,52,43" href="history.htm" alt="history" />
  240. <area shape="circle" coords="155,52,43" href="enigma.htm" alt="enigma"/>
  241. <area shape="circle" coords="255,52,43" href="algo.htm" alt="algorithms" />
  242. <area shape="circle" coords="355,52,43" href="single.htm" alt="Single Key"/>
  243. <area shape="circle" coords="455,52,43" href="public.htm" alt="Public Key" />
  244. </map>
  245. </p>
  246.  
  247.  
  248. </body>
  249. </html>
  250.  
  251. Tutorial 3 Case 3
  252.  
  253. <html>
  254. <head>
  255. <!--
  256. New Perspectives on HTML and XHTML 5th Edition
  257. Tutorial 3
  258. Case Problem 2
  259.  
  260. Bike the Mountains Tour
  261. Author: Max Haddad
  262. Date: 29 April 2010
  263.  
  264. Filename: bmtour.htm
  265. Supporting files: body.jpg, block.jpg, h1back.jpg, h1title.gif, wheels.css
  266. -->
  267.  
  268. <title>Bike the Mountains Tour</title>
  269.  
  270. <link href="wheels.css" rel="stylesheet" type="text/css" />
  271.  
  272.  
  273. </head>
  274.  
  275. <body>
  276. <h1><img src="h1title.gif" /></h1>
  277. <div id="column1">
  278. <a href="#">Home</a>
  279. <a href="#">Learn More</a>
  280. <a href="#">Testimonials</a>
  281. <a href="#">Route Maps</a>
  282. <a href="#">Register</a>
  283. <a href="#">Lodging</a>
  284. <a href="#">Meals</a>
  285. <a href="#">Training</a>
  286. <a href="#">Equipment</a>
  287. <a href="#">Forums</a>
  288. <a href="#">FAQs</a>
  289. <a href="#">Contact Us</a>
  290. </div>
  291.  
  292. <div id="column2">
  293. <h2>Introduction</h2>
  294. <p>The Bike the Mountains Tour rises from the town of Littleton, Colorado and
  295. explores the Colorado Front Range. Our tour crosses the Continental Divide
  296. twice, giving you the opportunity to bike the highest paved roads in the
  297. United States. This tour is a classic showcase of Colorado's Rocky Mountain
  298. scenery.</p>
  299. <blockquote>
  300. "The Bike the Mountains Tour is <i>amazing</i>. I highly recommend it
  301. and would gladly return."
  302. </blockquote>
  303. <p>Not designed for the weekend cyclist, this tour is offered only for those
  304. fit enough to ride high mountain passes. We provide sag wagons and
  305. support. Your lodging and meals are also part of the registration fee.
  306. We guarantee tough climbs, amazing sights, sweaty jerseys, and lots
  307. of fun.</p>
  308. <p>This is the seventh year we've offered the Bike the Mountains Tour. It is
  309. our most popular tour and riders are returning again and again. Our experienced
  310. tour leaders will be there to guide, help, encourage, draft, and lead you
  311. every stroke of the way. Come join us!</p>
  312. <h2>Itinerary</h2>
  313. <h3>Day 1</h3>
  314. <p>We start from the foothills above Littleton, Colorado, promptly at 9am. Be sure
  315. to fuel up at Kate's House of Pancakes before starting your ride. The first
  316. day is a chance to get your legs in shape, test your gearing, and prepare for
  317. what's to come. Be aware that there are several steep grades as we climb out of
  318. the valley into the Front Range. Optional side tours and shortcuts will be
  319. provided.</p>
  320. <h3>Day 2</h3>
  321. <p>Day 2 starts with a climb up Bear Creek Canyon to Lookout Mountain, followed
  322. by a swift and winding descent into the town of Golden. Refresh yourself at the
  323. famous Coors Brewery. You'll need the break to get yourself ready for a great
  324. climb through Golden Gate Canyon to the Peak to Peak Highway, ending in the
  325. gambling town of Blackhawk. Try your hand at poker and blackjack, but watch
  326. your wallet.</p>
  327. </div>
  328. <div id="column3">
  329. <h3>Day 3</h3>
  330. <p>Day 3 takes you along the Peak to Peak Highway. Established in 1918 this is
  331. Colorado's oldest scenic byway. This 55-mile route showcases the mountains
  332. of the Front Range, providing amazing vistas from Golden Gate Canyon State Park
  333. to Rocky Mountain National Park. We'll stop at Estes Park for fun and
  334. refreshment. Get a good night's sleep; you'll need it the next day.</p>
  335. <h3>Day 4</h3>
  336. <p>Now for the supreme challenge: Day 4 brings some real high-altitude cycling
  337. through Rocky Mountain National Park and up Trail Ridge Road. It's an
  338. amazing ride, high above timberline, topping out at over 11,000 feet. Stop and
  339. rest at the Alpine Visitor's Center before all of that hard work is rewarded
  340. with a fast and joyous descent into the town of Grand Lake.</p>
  341. <h3>Day 5</h3>
  342. <p>We start Day 5 on the west side of the Continental Divide. From Grand Lake,
  343. you'll bike to Winter Park, a great ski town summer resort. From Winter Park it's
  344. a steady and scenic climb over Berthoud Pass, and back to the eastern side of
  345. the Continental Divide. We'll stay at Idaho Springs, where you can enjoy the
  346. natural hot springs at the hotel.</p>
  347. <h3>Day 6</h3>
  348. <p>On Day 6 choose your pleasure or your poison. You can ride back to Littleton
  349. over Squaw Pass and Bear Creek. The ride is beautiful and enjoyable in its
  350. own right. However, if you're "up" to it, this is your opportunity to tackle
  351. Mount Evans. The 7-mile side trip to the top of Mt Evans, at over 14,000 feet,
  352. is something that can't be found anywhere else in the country. We'll provide
  353. the sag wagon, you provide the legs and lungs.</p>
  354. <p>Once you're back to Littleton, please join us for a celebratory dinner
  355. as we share memories of an amazing 6 days of riding the Colorado mountains.</p>
  356. </div>
  357.  
  358. <address>
  359. Bike the Mountains Tour &nbsp;&bull;&nbsp;
  360. Littleton, CO 80123 &nbsp;&bull;&nbsp;
  361. (303) 555 - 5499
  362. </address>
  363.  
  364.  
  365. </body>
  366. </html>
  367.  
  368. Tutorial 3 Case 2 CSS
  369.  
  370. /*
  371. New Perspectives on HTML and XHTML 5th Edition
  372. Tutorial 3
  373. Case Problem 2
  374.  
  375. Mountain Wheels Style Sheet
  376. Author: Max Haddad
  377. Date: 29 April 2010
  378.  
  379. Filename: wheel.css
  380. Supporting Files: body.jpg, block.jpg, h1back.jpg
  381.  
  382. */
  383.  
  384.  
  385. body {font-family: verdana, helvetica;
  386. margin: 0px 0px 0px 0px;
  387. background-color: white;
  388. background-image: url(body.jpg);
  389. background-repeat: repeat-y;
  390. }
  391.  
  392. #column1 {float: left;
  393. width: 140px;
  394. padding-left: 10px;
  395. padding-right: 20px
  396. }
  397.  
  398. #column2 {width: 40%;
  399. float: left;
  400. border-left: 1px solid black;
  401. border-right: 1px solid black
  402. }
  403.  
  404. h1 {
Add Comment
Please, Sign In to add comment