Tuesday, January 5, 2010

Three Lists But No Liszt

Lesson Seven, Chapter One in Cearley’s Book

In Which the UL, OL, an DL Tags are Used


Lists of Ordered and Unordered Nature



An Unordered List, Yet Orderly in Appearance



    Some U.S. Naval Aircraft Used in World War II
  • F4F Wildcat

    1. F4F-3
    2. F4F-4

  • SBD Dauntless
  • TBD Devastator
  • TBF Avenger
  • F6F Hellcat
  • F4U Corsair

An Ordered List, By the Numbers



    Some Aircraft Ordered by Number of Engines, Ascending
  1. F4F Wildcat
  2. B-25 Mitchell
  3. Ford Trimotor
  4. He-177, which had only two propellors each of four blades and two engine nacelles, but inside each engine nacelle, which were, incidentally, mounted one one each wing, where two engines mounted end-to-end such that the drive shafts were linked. This was not a satisfactory arrangement; if memory serves, it was prone to fire do to inadequate cooling.
  5. I know of no five-engined airplane.
  6. B-47
  7. Alas, I am ignorant of any seven-engine aeroplane.
  8. B-52 Stratofortress

A List of Words and Their Definitions, But Without Etymology and Examples of Usage



Military Aircraft Types (Not Compacted)
Fighter
An airplane optimized for dogfighting.
Fighter Bomber
An aircraft design suitable for dogfighting but also capable of ground attack.
Torpedo Bomber
This type of airplane carries one or more torpedos for use against ships.
Dive Bomber
A type of airplane stressed to withstand steep dives in order to deliver a single bomb on a small target.


Military Aircraft Types (Compacted)
Fighter
An airplane optimized for dogfighting.
Fighter Bomber
An aircraft design suitable for dogfighting but also capable of ground attack.
Torpedo Bomber
This type of airplane carries one or more torpedos for use against ships.
Dive Bomber
A type of airplane stressed to withstand steep dives in order to deliver a single bomb on a small target.

Aircraft Types and Examples: A Nested List



  • Fighters

    1. P-38 Lightning
    2. P-40 Warhawk
    3. P-47 Thunderbolt
    4. P-51 Mustang
    5. P-80 Shooting Star

  • Bombers

    1. B-17 Flying Fortress
    2. B-25 Mitchell
    3. B-26 Maurader
    4. B-29 Superfortress
    5. B-36 Peacemaker

  • Transports

    1. C-46
    2. C-47
    3. C-130
    4. C-5
    5. C-17




Creator...........: David Rupp
Created On........: 24 December 2009
Last Modified By..: David Rupp
Last Modified On..: 5 January 2010



The code:





In the first DIV tag the align=”center” element was not being recognized. In the previous post, I thought that the header tag align element was being overridden either by Blogspot or the blog template while the DIV tag’s use of align was unaffected. Now I discover a new twist. I removed the double quotes around the align value (center), and by golly the dang thing works. From what I have read so far, this does not seem to be proper HTML behavior; center as an element value must have either single or double quotes. Having just written that, I tried the single quotes, and it worked! Then I reverted back to the double quotes, and it worked!?!? Interesting behavior.

The local reference (href=”#aaa”) works quite nicely. Since each post is a separate HTML file, managing label names to avoid collisions should be easy. The ordered and unordered lists also behave nicely, even with nesting. The COMPACT element does have any effect in IE8, but then it is deprecated now and I shouldn’t be using it.

Finally, I left most of the structure in the code which produced a fair number of blank lines, but it is not unbearable.

No comments: