spucoly

Untitled

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